Spaces:
Sleeping
Sleeping
updated app.py again
Browse files
app.py
CHANGED
|
@@ -345,6 +345,7 @@ def generate_ai_reasoning(user_data, diet_tags, exercise_tags):
|
|
| 345 |
],
|
| 346 |
temperature=0.6,
|
| 347 |
max_tokens=250,
|
|
|
|
| 348 |
)
|
| 349 |
|
| 350 |
return chat_completion.choices[0].message.content.strip()
|
|
@@ -448,7 +449,7 @@ CRITICAL LANGUAGE RULE: You MUST translate ALL generated string values (except k
|
|
| 448 |
)
|
| 449 |
|
| 450 |
chat_completion = groq_client.chat.completions.create(
|
| 451 |
-
model="
|
| 452 |
messages=[
|
| 453 |
{"role": "system", "content": system_prompt},
|
| 454 |
{"role": "user", "content": user_prompt},
|
|
@@ -456,6 +457,7 @@ CRITICAL LANGUAGE RULE: You MUST translate ALL generated string values (except k
|
|
| 456 |
temperature=0.7,
|
| 457 |
max_tokens=1500,
|
| 458 |
response_format={"type": "json_object"},
|
|
|
|
| 459 |
)
|
| 460 |
|
| 461 |
raw = chat_completion.choices[0].message.content.strip()
|
|
|
|
| 345 |
],
|
| 346 |
temperature=0.6,
|
| 347 |
max_tokens=250,
|
| 348 |
+
include_reasoning=False,
|
| 349 |
)
|
| 350 |
|
| 351 |
return chat_completion.choices[0].message.content.strip()
|
|
|
|
| 449 |
)
|
| 450 |
|
| 451 |
chat_completion = groq_client.chat.completions.create(
|
| 452 |
+
model="openai/gpt-oss-120b",
|
| 453 |
messages=[
|
| 454 |
{"role": "system", "content": system_prompt},
|
| 455 |
{"role": "user", "content": user_prompt},
|
|
|
|
| 457 |
temperature=0.7,
|
| 458 |
max_tokens=1500,
|
| 459 |
response_format={"type": "json_object"},
|
| 460 |
+
include_reasoning=False,
|
| 461 |
)
|
| 462 |
|
| 463 |
raw = chat_completion.choices[0].message.content.strip()
|