Update app.py
Browse files
app.py
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
import os
|
2 |
from gpt_index import GPTSimpleVectorIndex
|
3 |
import gradio as gr
|
4 |
-
API_URL='https://api.
|
5 |
openai_api_key=os.environ['OPENAI_API_KEY']
|
6 |
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.')
|
7 |
top_p_chatgpt=1.
|
|
|
1 |
import os
|
2 |
from gpt_index import GPTSimpleVectorIndex
|
3 |
import gradio as gr
|
4 |
+
API_URL='https://api.deepseek.com/v1/chat/completions'
|
5 |
openai_api_key=os.environ['OPENAI_API_KEY']
|
6 |
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.')
|
7 |
top_p_chatgpt=1.
|