Skip to content

Commit 08d9864

Browse files
authored
fix(gpt-researcher): colliding env variable (#956)
Signed-off-by: Radek Ježek <radek.jezek@ibm.com>
1 parent b4225ca commit 08d9864

File tree

1 file changed

+5
-2
lines changed
  • agents/community/gpt-researcher/gpt_researcher_agent

1 file changed

+5
-2
lines changed

agents/community/gpt-researcher/gpt_researcher_agent/agent.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,10 @@
7777
"name": "LLM_MODEL_STRATEGIC",
7878
"description": "Strategic model to use from the specified OpenAI-compatible API.",
7979
},
80-
{"name": "EMBEDDING_MODEL", "description": "Embedding model to use (see GPT Researcher docs for details)"},
80+
{
81+
"name": "GPT_RESEARCHER_EMBEDDING_MODEL",
82+
"description": "Embedding model to use (see GPT Researcher docs for details)"
83+
},
8184
],
8285
)
8386
)
@@ -95,7 +98,7 @@ async def gpt_researcher(input: list[Message], context: Context) -> None:
9598
os.environ["SMART_LLM"] = f"openai:{os.getenv('LLM_MODEL_SMART', model)}"
9699
os.environ["STRATEGIC_LLM"] = f"openai:{os.getenv('LLM_MODEL_STRATEGIC', model)}"
97100

98-
embedding_model = os.getenv("EMBEDDING_MODEL")
101+
embedding_model = os.getenv("GPT_RESEARCHER_EMBEDDING_MODEL")
99102
if embedding_model:
100103
os.environ["EMBEDDING"] = embedding_model
101104

0 commit comments

Comments
 (0)