Fix all lint errors (#2627)

This commit is contained in:
Dev Khant
2025-05-06 01:16:02 +05:30
committed by GitHub
parent 725a1aa114
commit ec1d7a45d3
50 changed files with 586 additions and 570 deletions

View File

@@ -7,10 +7,11 @@ export OPENAI_API_KEY="your_openai_api_key"
export MEM0_API_KEY="your_mem0_api_key"
"""
from mem0 import MemoryClient
from agno.agent import Agent
from agno.models.openai import OpenAIChat
from mem0 import MemoryClient
# Initialize memory
memory_client = MemoryClient(api_key="your-mem0-api-key")
USER_ID = "Anish"

View File

@@ -8,9 +8,11 @@ export XAI_API_KEY="your_xai_api_key"
export MEM0_API_KEY="your_mem0_api_key"
"""
from mem0 import Memory
import os
from openai import OpenAI
from mem0 import Memory
# Configure Mem0 with Grok 3 and Qdrant
config = {
@@ -41,7 +43,7 @@ memory = Memory.from_config(config)
# Initialize Grok 3 client
grok_client = OpenAI(
api_key=XAI_API_KEY,
api_key=os.getenv("XAI_API_KEY"),
base_url="https://api.x.ai/v1",
)

View File

@@ -12,8 +12,8 @@ from pathlib import Path
from agno.agent import Agent
from agno.media import Image
from agno.models.openai import OpenAIChat
from mem0 import MemoryClient
from mem0 import MemoryClient
# Initialize the Mem0 client
client = MemoryClient()

View File

@@ -9,9 +9,9 @@ export MEM0_API_KEY="your_mem0_api_key"
"""
import asyncio
from mem0 import MemoryClient
from agents import Agent, Runner
from mem0 import MemoryClient
client = MemoryClient()

View File

@@ -21,11 +21,13 @@ You must also have:
import tempfile
import wave
import pyaudio
from elevenlabs.client import ElevenLabs
from crewai import Agent, Crew, Process, Task
from elevenlabs import play
from crewai import Agent, Task, Crew, Process
from elevenlabs.client import ElevenLabs
from openai import OpenAI
from mem0 import MemoryClient
# ------------------ SETUP ------------------