Skip to content

Commit

Permalink
removes groq from default factory (vocodedev#584)
Browse files Browse the repository at this point in the history
  • Loading branch information
ajar98 committed Jun 26, 2024
1 parent 8f19e47 commit b52d11c
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions vocode/streaming/agent/default_factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,13 @@
from vocode.streaming.agent.base_agent import BaseAgent
from vocode.streaming.agent.chat_gpt_agent import ChatGPTAgent
from vocode.streaming.agent.echo_agent import EchoAgent
from vocode.streaming.agent.groq_agent import GroqAgent
from vocode.streaming.agent.restful_user_implemented_agent import RESTfulUserImplementedAgent
from vocode.streaming.models.agent import (
AgentConfig,
AnthropicAgentConfig,
ChatGPTAgentConfig,
EchoAgentConfig,
RESTfulUserImplementedAgentConfig,
GroqAgentConfig
)


Expand All @@ -25,6 +23,4 @@ def create_agent(self, agent_config: AgentConfig) -> BaseAgent:
return RESTfulUserImplementedAgent(agent_config=agent_config)
elif isinstance(agent_config, AnthropicAgentConfig):
return AnthropicAgent(agent_config=agent_config)
elif isinstance(agent_config, GroqAgentConfig):
return GroqAgent(agent_config=agent_config)
raise Exception("Invalid agent config", agent_config.type)
raise Exception("Invalid agent config", agent_config.type)

0 comments on commit b52d11c

Please sign in to comment.