Skip to content

Commit

Permalink
🔥 Remove unused parsers
Browse files Browse the repository at this point in the history
  • Loading branch information
shroominic committed Dec 12, 2023
1 parent fc2e537 commit c8898d0
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/codeinterpreterapi/session.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@
)
from codeinterpreterapi.chat_history import CodeBoxChatMessageHistory
from codeinterpreterapi.config import settings
from codeinterpreterapi.parser import CodeAgentOutputParser, CodeChatAgentOutputParser
from codeinterpreterapi.schema import (
CodeInput,
CodeInterpreterResponse,
Expand Down Expand Up @@ -178,14 +177,12 @@ def _choose_agent(self) -> BaseSingleActionAgent:
llm=self.llm,
tools=self.tools,
system_message=settings.SYSTEM_MESSAGE.content.__str__(),
output_parser=CodeChatAgentOutputParser(self.llm),
)
if isinstance(self.llm, BaseChatModel)
else ConversationalAgent.from_llm_and_tools(
llm=self.llm,
tools=self.tools,
prefix=settings.SYSTEM_MESSAGE.content.__str__(),
output_parser=CodeAgentOutputParser(),
)
)

Expand Down

0 comments on commit c8898d0

Please sign in to comment.