Commit 6a4ec12
Don't send the
Ollama Cloud returns a 500 for any request that carries both a `developer` role
message and an image. The same request succeeds with `system`, and text-only
requests with `developer` are fine, so the two only conflict together.
pi selects the `developer` role whenever a model reports reasoning support, and
the ollama case hardcodes `reasoning: true` for every model, so every image sent
to a vision model like gemma4:31b-cloud failed. The case carried no `compat` at
all and therefore inherited pi's OpenAI-shaped defaults; Workers AI already
pins the same flag just above.
Pin the role rather than the `reasoning` capability, which is reported
unconditionally and would disable thinking for ollama models that do support it.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SetKoutv8UUpQn2MeV66RFdeveloper role to Ollama.1 parent aedcda8 commit 6a4ec12
1 file changed
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
563 | 563 | | |
564 | 564 | | |
565 | 565 | | |
| 566 | + | |
| 567 | + | |
| 568 | + | |
566 | 569 | | |
567 | 570 | | |
568 | 571 | | |
| |||
0 commit comments