Update agent_builder.py

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

@ -5,7 +5,7 @@ from loguru import logger
from pydantic import BaseModel, Field from pydantic import BaseModel, Field
from swarms.structs.agent import Agent from swarms.structs.agent import Agent
from swarms.utils.function_caller_model import OpenAIFunctionCaller from swarms.utils.litellm_wrapper import LiteLLM
BOSS_SYSTEM_PROMPT = """ BOSS_SYSTEM_PROMPT = """
# Swarm Intelligence Orchestrator # Swarm Intelligence Orchestrator
@ -193,12 +193,11 @@ class AgentsBuilder:
list: List of created agents list: List of created agents
""" """
logger.info("Creating agents for task") logger.info("Creating agents for task")
model = OpenAIFunctionCaller( model = LiteLLM(
model_name=self.model_name,
system_prompt=self.system_prompt, system_prompt=self.system_prompt,
api_key=os.getenv("OPENAI_API_KEY"),
temperature=0.1, temperature=0.1,
base_model=Agents, response_format=Agents,
model_name=self.model_name,
max_tokens=8192, max_tokens=8192,
) )

Loading…
Cancel
Save