appl044 commited on
Commit
6d95d66
1 Parent(s): 0ad2615

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
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
- async def set_openai_key(api_key):
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