Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -12,7 +12,8 @@ API_URL = "https://api.openai.com/v1/chat/completions" #os.getenv("API_URL") + "
|
|
12 |
def predict(inputs, top_p, temperature, openai_api_key, chat_counter, chatbot=[], history=[]): #repetition_penalty, top_k
|
13 |
|
14 |
payload = {
|
15 |
-
"model": "gpt-3.5-turbo",
|
|
|
16 |
"messages": [{"role": "user", "content": f"{inputs}"}],
|
17 |
"temperature" : 1.0,
|
18 |
"top_p":1.0,
|
|
|
12 |
def predict(inputs, top_p, temperature, openai_api_key, chat_counter, chatbot=[], history=[]): #repetition_penalty, top_k
|
13 |
|
14 |
payload = {
|
15 |
+
#"model": "gpt-3.5-turbo",
|
16 |
+
"model": "gpt-3.5-fr",
|
17 |
"messages": [{"role": "user", "content": f"{inputs}"}],
|
18 |
"temperature" : 1.0,
|
19 |
"top_p":1.0,
|