pull/11/head
Kye 2 years ago
parent c145bc4e6a
commit 854e6ad78c

@ -23,10 +23,7 @@ class AgentBuilder:
self.toolsets = toolsets self.toolsets = toolsets
def build_llm(self, callback_manager: BaseCallbackManager = None, openai_api_key: str = None): def build_llm(self, callback_manager: BaseCallbackManager = None, openai_api_key: str = None):
self.llm = ChatOpenAI( self.llm = ChatOpenAI(openai_api_key=openai_api_key, temperature=0, callback_manager=callback_manager, verbose=True)
temperature=0, callback_manager=callback_manager, verbose=True, openai_api_key=openai_api_key
)
self.llm.check_access()
def build_parser(self): def build_parser(self):
self.parser = EvalOutputParser() self.parser = EvalOutputParser()

Loading…
Cancel
Save