Update meme_agent_persona_generator.py

pull/1101/head
CI-DEV 1 week ago committed by GitHub
parent a19ddc9fb8
commit 9ebd54de57
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -9,7 +9,7 @@ from pydantic import BaseModel, Field
from swarms.structs.agent import Agent
from swarms.structs.swarm_router import SwarmRouter
from swarms.utils.function_caller_model import OpenAIFunctionCaller
from swarms.utils.litellm_wrapper import LiteLLM
load_dotenv()
@ -162,11 +162,11 @@ class MemeAgentGenerator:
list: List of created agents
"""
logger.info("Creating agents for task")
model = OpenAIFunctionCaller(
model = LiteLLM(
model_name="gpt-4o",
system_prompt=BOSS_SYSTEM_PROMPT,
api_key=os.getenv("OPENAI_API_KEY"),
temperature=0.1,
base_model=MemeSwarmConfig,
response_format=MemeSwarmConfig,
)
agents_dictionary = model.run(task)

Loading…
Cancel
Save