Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -12,7 +12,7 @@ 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-
|
16 |
"messages": [{"role": "user", "content": f"{inputs}"}],
|
17 |
"temperature" : 1.0,
|
18 |
"top_p":1.0,
|
@@ -45,7 +45,7 @@ def predict(inputs, top_p, temperature, openai_api_key, chat_counter, chatbot=[]
|
|
45 |
messages.append(temp3)
|
46 |
#messages
|
47 |
payload = {
|
48 |
-
"model": "gpt-
|
49 |
"messages": messages, #[{"role": "user", "content": f"{inputs}"}],
|
50 |
"temperature" : temperature, #1.0,
|
51 |
"top_p": 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-4-1106-preview",
|
16 |
"messages": [{"role": "user", "content": f"{inputs}"}],
|
17 |
"temperature" : 1.0,
|
18 |
"top_p":1.0,
|
|
|
45 |
messages.append(temp3)
|
46 |
#messages
|
47 |
payload = {
|
48 |
+
"model": "gpt-4-1106-preview",
|
49 |
"messages": messages, #[{"role": "user", "content": f"{inputs}"}],
|
50 |
"temperature" : temperature, #1.0,
|
51 |
"top_p": top_p, #1.0,
|