ZIm/crates/language_models/src/provider
Umesh Yadav 65e3e84cbc
language_models: Add thinking support for ollama (#31665)
This PR updates how we handle Ollama responses, leveraging the new
[v0.9.0](https://github.com/ollama/ollama/releases/tag/v0.9.0) release.
Previously, thinking text was embedded within the model's main content,
leading to it appearing directly in the agent's response. Now, thinking
content is provided as a separate parameter, allowing us to display it
correctly within the agent panel, similar to other providers. I have
tested this with qwen3:8b and works nicely. ~~We can release this once
the ollama is release is stable.~~ It's released now as stable.

<img width="433" alt="image"
src="https://github.com/user-attachments/assets/2983ef06-6679-4033-82c2-231ea9cd6434"
/>


Release Notes:

- Add thinking support for ollama

---------

Co-authored-by: Bennet Bo Fenner <bennetbo@gmx.de>
2025-06-02 15:12:41 +00:00
..
anthropic.rs Make language model deserialization more resilient (#31311) 2025-05-28 12:06:07 -04:00
bedrock.rs Make language model deserialization more resilient (#31311) 2025-05-28 12:06:07 -04:00
cloud.rs Pass up intent with completion requests (#31710) 2025-05-29 20:43:12 +00:00
copilot_chat.rs Make language model deserialization more resilient (#31311) 2025-05-28 12:06:07 -04:00
deepseek.rs Use anyhow more idiomatically (#31052) 2025-05-20 23:06:07 +00:00
google.rs agent: Fix bug with double-counting tokens in Gemini (#31885) 2025-06-02 10:18:44 +00:00
lmstudio.rs language_models: Remove handling of WrappedTextContent in tool result content (#31605) 2025-05-28 16:43:08 +00:00
mistral.rs Pass up intent with completion requests (#31710) 2025-05-29 20:43:12 +00:00
ollama.rs language_models: Add thinking support for ollama (#31665) 2025-06-02 15:12:41 +00:00
open_ai.rs Pass up intent with completion requests (#31710) 2025-05-29 20:43:12 +00:00