Skip to content

Commit

Permalink
fix openai key
Browse files Browse the repository at this point in the history
  • Loading branch information
kongzii committed Feb 11, 2024
1 parent 882feb7 commit 6a25d30
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion prediction_market_agent/agents/autogen_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def get_base_llm_config(self) -> dict[str, t.Any]:
"config_list": [
{
"model": "gpt-4",
"api_key": keys.openai,
"api_key": keys.openai_api_key,
}
],
"temperature": 0,
Expand Down
2 changes: 1 addition & 1 deletion prediction_market_agent/agents/langchain_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
class LangChainAgent(AbstractAgent):
def __init__(self) -> None:
keys = utils.APIKeys()
llm = OpenAI(openai_api_key=keys.openai)
llm = OpenAI(openai_api_key=keys.openai_api_key)
# Can use pre-defined search tool
# TODO: Tavily tool could give better results
# https://docs.tavily.com/docs/tavily-api/langchain
Expand Down

0 comments on commit 6a25d30

Please sign in to comment.