Spaces:
Runtime error
Runtime error
Eddyhzd
commited on
Commit
·
a9cc20c
1
Parent(s):
81cf8d0
FIX: nom du model
Browse files
app.py
CHANGED
|
@@ -41,7 +41,7 @@ def trim_context(text: str, max_chars: int = 4000) -> str:
|
|
| 41 |
# garder le début (head) utile pour les CSV preview
|
| 42 |
return text[:max_chars] + "\n... (truncated)"
|
| 43 |
|
| 44 |
-
def call_llm(messages, model="mistral-
|
| 45 |
"""Appel synchrones au LLM (OpenAI-compatible)."""
|
| 46 |
resp = client.chat.completions.create(
|
| 47 |
model=model,
|
|
|
|
| 41 |
# garder le début (head) utile pour les CSV preview
|
| 42 |
return text[:max_chars] + "\n... (truncated)"
|
| 43 |
|
| 44 |
+
def call_llm(messages, model="mistral-small-latest", max_tokens=512, temperature=0.2):
|
| 45 |
"""Appel synchrones au LLM (OpenAI-compatible)."""
|
| 46 |
resp = client.chat.completions.create(
|
| 47 |
model=model,
|