Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -49,11 +49,20 @@ def groq_with_memory(message: str, topic: str = "general", summarize: bool = Fal
|
|
| 49 |
messages.append({"role": "user", "content": summary_prompt})
|
| 50 |
|
| 51 |
payload = {
|
| 52 |
-
|
| 53 |
-
|
| 54 |
-
|
| 55 |
-
"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 56 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
| 57 |
|
| 58 |
response = requests.post(API_URL, headers=headers, json=payload, timeout=30)
|
| 59 |
|
|
|
|
| 49 |
messages.append({"role": "user", "content": summary_prompt})
|
| 50 |
|
| 51 |
payload = {
|
| 52 |
+
"model": "compound-beta",
|
| 53 |
+
"messages": [
|
| 54 |
+
{
|
| 55 |
+
"role": "system",
|
| 56 |
+
"content": "Jawab singkat, tajam, jelas, kreatif tinggi. Langsung ke inti."
|
| 57 |
+
},
|
| 58 |
+
{
|
| 59 |
+
"role": "user",
|
| 60 |
+
"content": "pertanyaan user di sini"
|
| 61 |
}
|
| 62 |
+
],
|
| 63 |
+
"max_tokens": 100,
|
| 64 |
+
"temperature": 0.8
|
| 65 |
+
}
|
| 66 |
|
| 67 |
response = requests.post(API_URL, headers=headers, json=payload, timeout=30)
|
| 68 |
|