Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,8 +1,8 @@
|
|
1 |
import os
|
2 |
from gpt_index import GPTSimpleVectorIndex
|
3 |
import gradio as gr
|
4 |
-
|
5 |
-
API_URL='https://openrouter.ai/api/v1/chat/completions'
|
6 |
openai_api_key=os.environ['OPENAI_API_KEY']
|
7 |
if openai_api_key is None:raise ValueError('Did not find openai_api_key, please add an environment variable `OPENAI_API_KEY` which contains it, or pass `openai_api_key` as a named parameter.')
|
8 |
top_p_chatgpt=1.
|
|
|
1 |
import os
|
2 |
from gpt_index import GPTSimpleVectorIndex
|
3 |
import gradio as gr
|
4 |
+
API_URL='https://api.openai.com/v1/chat/completions'
|
5 |
+
#API_URL='https://openrouter.ai/api/v1/chat/completions'
|
6 |
openai_api_key=os.environ['OPENAI_API_KEY']
|
7 |
if openai_api_key is None:raise ValueError('Did not find openai_api_key, please add an environment variable `OPENAI_API_KEY` which contains it, or pass `openai_api_key` as a named parameter.')
|
8 |
top_p_chatgpt=1.
|