Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -266,7 +266,7 @@ def load_chain(tools_list, llm):
|
|
266 |
|
267 |
|
268 |
# async def set_chain_state_api_key(api_key):
|
269 |
-
|
270 |
# Set the API key for chain_state
|
271 |
# chain_state.api_key = api_key
|
272 |
|
@@ -313,7 +313,8 @@ async def set_openai_key(api_key):
|
|
313 |
PROMPTLAYER_API_BASE = "https://api.promptlayer.com"
|
314 |
|
315 |
|
316 |
-
async def set_openai_api_key(api_key):
|
|
|
317 |
"""
|
318 |
Sets the OpenAI API key for various components in the application asynchronously.
|
319 |
|
|
|
266 |
|
267 |
|
268 |
# async def set_chain_state_api_key(api_key):
|
269 |
+
def set_openai_key(api_key):
|
270 |
# Set the API key for chain_state
|
271 |
# chain_state.api_key = api_key
|
272 |
|
|
|
313 |
PROMPTLAYER_API_BASE = "https://api.promptlayer.com"
|
314 |
|
315 |
|
316 |
+
# async def set_openai_api_key(api_key):
|
317 |
+
def set_openai_api_key(api_key):
|
318 |
"""
|
319 |
Sets the OpenAI API key for various components in the application asynchronously.
|
320 |
|