mirror of
https://github.com/cline/cline.git
synced 2026-08-28 19:48:08 +08:00
400ba47387
* fix(ollama): use native AI SDK provider * fix(ollama): patch ollama-ai-provider-v2 wire contracts and lock them with real-provider tests The pinned ollama-ai-provider-v2@4.0.1 breaks four native Ollama wire contracts (review findings on #12892). Patch the package via Bun patchedDependencies: - omit think from the request when no reasoning setting resolves, instead of forcing think: false (lets the server default apply) - surface mid-stream {"error": ...} objects as error stream parts with an error finish reason, instead of dropping them before a clean finish - serialize attachment-only user turns as string content (""), not [] - include the documented tool_name field on tool result messages Add ollama.wire.test.ts exercising doStream through the vendor module against the real (patched) package with a stubbed fetch, asserting on the actual /api/chat request bodies and parsed stream so regressions in the dependency's request converter or stream parser are caught. * fix ollama model list refresh --------- Co-authored-by: Saoud Rizwan <7799382+saoudrizwan@users.noreply.github.com>