Skip to content

Commit bada775

Browse files
replaced restack_api_key for openai_api_key in env.vars and functions
1 parent fd8c76e commit bada775

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

agent_rag/.env.Example

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
# Restack API key for the llm call
2-
RESTACK_API_KEY=<your_restack_api_key>
2+
OPENAI_API_KEY=<your_openai_api_key>

agent_todo/src/functions/llm_chat.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ async def llm_chat(function_input: LlmChatInput) -> ChatCompletion:
4040
try:
4141
log.info("llm_chat function started", function_input=function_input)
4242

43-
if os.environ.get("RESTACK_API_KEY") is None:
44-
raise_exception("RESTACK_API_KEY is not set")
43+
if os.environ.get("OPENAI_API_KEY") is None:
44+
raise_exception("OPENAI_API_KEY is not set")
4545

4646
client = OpenAI(api_key=os.environ.get("OPENAI_API_KEY"))
4747

agent_tool/.env.Example

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
# Restack API key for the llm call
2-
RESTACK_API_KEY=<your_restack_api_key>
2+
OPENAI_API_KEY=<your_openai_api_key>

0 commit comments

Comments
 (0)