Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -24,7 +24,7 @@ def ask_gpt_history(history, user_key):
|
|
| 24 |
client = OpenAI(api_key=user_key)
|
| 25 |
|
| 26 |
# Inject the "Soul" (System Prompt)
|
| 27 |
-
system_prompt = {"role": "system", "content": "You are a
|
| 28 |
full_payload = [system_prompt] + history
|
| 29 |
|
| 30 |
response = client.chat.completions.create(
|
|
|
|
| 24 |
client = OpenAI(api_key=user_key)
|
| 25 |
|
| 26 |
# Inject the "Soul" (System Prompt)
|
| 27 |
+
system_prompt = {"role": "system", "content": "You are a helpful AI assistant."}
|
| 28 |
full_payload = [system_prompt] + history
|
| 29 |
|
| 30 |
response = client.chat.completions.create(
|