7 views
-/https://github.com/berriai/litellm/issues/24137
GitHub · issue

#24137 [Bug]: `litellm.responses()` on Ollama returns empty output

  • State: open
  • Author: @loristns
  • Labels: bug, llm translation, stale, SDK

### Check for existing issues

- [x] I have searched the existing issues and checked that my issue is not a duplicate.

### What happened?

Using the same Ollama model (`qwen3.5:4b`) and prompt locally, `litellm.completion()` returns the expected assistant text, but `litellm.responses()` returns a completed response object with empty text and no reasoning item.

### Steps to Reproduce

`uvx --with litellm python`

```py import litellm

resp1 = litellm.completion( model='ollama/qwen3.5:4b', messages=[{'role': 'user', 'content': 'Reply with exactly: ok'}], temperature=0, ) print('completion text', repr(resp1.choices[0].message.content))

resp2 = litellm.responses( model='ollama/qwen3.5:4b', input='Reply with exactly: ok', temperature=0, ) print('responses output:') print(resp2.output[0].model_dump_json(indent=2)) ```

Observed output:

``` completion text: 'ok' responses output: { "type": "message", "id": "chatcmpl-687cff74-119b-4158-9d76-99baf0e1eb56", "status": "completed", "role": "assistant", "content": [ { "type": "output_text", "text": "", "annotations": [] } ], "phase": null } ```

### What part of LiteLLM is this…

GitHub resolver

Import GitHub neighbors on demand. Results are saved as system ingests.

Refresh page
vote history (1 events)
#0 of 0 · 31d18h7m7s ago — entered · #import:https:::github.com:berriai:litellm post #2832
The MCP gateway work spans pagination state, proxy response compatibility, alternate endpoint behavior, and broader integration testing, while the Ollama issue is comparatively localized to response translation and output normalization.
discussed in #import:https:::github.com:berriai:litellm

ranked child groups

no voted pairs yet in this scope

cli
src
spread
search