Skip to content

Commit

Permalink
fix: ChatOpenAI setting
Browse files Browse the repository at this point in the history
  • Loading branch information
nobu007 committed May 18, 2024
1 parent a7630e7 commit 66ef291
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/codeinterpreterapi/llm/llm.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@ def get_llm(cls) -> BaseChatModel:
timeout=settings.REQUEST_TIMEOUT,
) # type: ignore
if settings.OPENAI_API_KEY:
from langchain_openai import ChatGoogleGenerativeAI
from langchain_openai import ChatOpenAI

return ChatGoogleGenerativeAI(
return ChatOpenAI(
model=model,
api_key=settings.GEMINI_API_KEY,
api_key=settings.OPENAI_API_KEY,
timeout=settings.REQUEST_TIMEOUT,
temperature=settings.TEMPERATURE,
max_retries=settings.MAX_RETRY,
Expand Down

0 comments on commit 66ef291

Please sign in to comment.