Merge PR #122: local LLM compatibility fix

This commit is contained in:
Lucas Ercolano 2026-04-10 16:56:16 -03:00
commit cec4effd0d
1 changed files with 2 additions and 1 deletions

View File

@ -88,7 +88,8 @@ class LLMClient:
messages=messages,
temperature=temperature,
max_tokens=max_tokens,
response_format={"type": "json_object"}
# 不設 response_format 以相容 LM Studio / Ollama 等本地模型
# 依賴 prompt 中的 JSON 指示 + 下方的 markdown 清理邏輯
)
# 清理markdown代码块标记
cleaned_response = response.strip()