Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -145,7 +145,7 @@ def clear_all(history, uploaded_file_paths):
|
|
145 |
chats[0]=summary
|
146 |
|
147 |
#file_path_download = save_and_download(summary)
|
148 |
-
headers, payload = process_chatverlauf(
|
149 |
response = requests.post("https://api.openai.com/v1/chat/completions", headers=headers, json=payload)
|
150 |
#als json ausgeben
|
151 |
data = response.json()
|
|
|
145 |
chats[0]=summary
|
146 |
|
147 |
#file_path_download = save_and_download(summary)
|
148 |
+
headers, payload = process_chatverlauf(summary, MODEL_NAME, OAI_API_KEY)
|
149 |
response = requests.post("https://api.openai.com/v1/chat/completions", headers=headers, json=payload)
|
150 |
#als json ausgeben
|
151 |
data = response.json()
|