Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -63,6 +63,7 @@ def rag_pipeline(query, model_choice):
|
|
| 63 |
try:
|
| 64 |
response = client.chat.completions.create(
|
| 65 |
model=model_choice,
|
|
|
|
| 66 |
messages=[
|
| 67 |
{"role": "system", "content": "You are a helpful assistant."},
|
| 68 |
{"role": "user", "content": prompt}
|
|
|
|
| 63 |
try:
|
| 64 |
response = client.chat.completions.create(
|
| 65 |
model=model_choice,
|
| 66 |
+
# ✅ Properly formatted messages
|
| 67 |
messages=[
|
| 68 |
{"role": "system", "content": "You are a helpful assistant."},
|
| 69 |
{"role": "user", "content": prompt}
|