mirror of
https://github.com/pewdiepie-archdaemon/odysseus.git
synced 2026-08-05 02:45:28 +00:00
Merge e3eab6734a into bb719f217a
This commit is contained in:
commit
71f591d86d
1 changed files with 2 additions and 0 deletions
|
|
@ -2240,6 +2240,8 @@ async def _stream_llm_inner(url: str, model: str, messages: List[Dict], temperat
|
|||
# <think> blocks. Ollama /v1 accepts "think": false as a top-level param.
|
||||
if _is_ollama_openai_compat_url(url) and _supports_thinking(model):
|
||||
payload["think"] = False
|
||||
if tools:
|
||||
payload["reasoning_effort"] = "none"
|
||||
_apply_local_cache_affinity(payload, url, session_id)
|
||||
_apply_local_generation_stability(payload, target_url, model)
|
||||
_scrub_openai_chat_tool_reasoning(payload, target_url, model)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue