Skip to content

Ollama Cloud doesn't display context size #9189

Closed

Description

@spiffytech

Description

When I use models from Ollama Cloud, the sidebar always says 0 tokens, 0% used, no matter how much I've chatted.

Plugins

No response

OpenCode version

1.1.25

Steps to reproduce

No response

Screenshot and/or share link

No response

Operating System

Fedora Linux, Windows 11

Terminal

No response

Activity

  1. github-actions commented on Jan 18, 2026

    @github-actions
    Contributor

    This issue might be a duplicate of existing issues. Please check:

    Feel free to ignore if none of these address your specific case.

  2. henryclw commented on Jan 18, 2026

    @henryclw

    Same with local model. I remember seeing the context usage of my local model couple days ago. So this might be a newly introduced bug.

  3. iamhenry commented on Feb 12, 2026

    @iamhenry

    im getting this as well as a paid ollama cloud user with my api key

    As you can see in the screenshot, both of the session headers don't include the context usage.

    Image
  4. rekram1-node commented on Feb 13, 2026

    @rekram1-node
    Collaborator

    Hm if there is no usage coming back I tend to think ollama cloud isnt sending usage back in a standard format

  5. rekram1-node commented on Feb 13, 2026

    @rekram1-node
    Collaborator

    lemme sign up for an account and see

  6. rekram1-node commented on Feb 13, 2026

    @rekram1-node
    Collaborator
    data: {"id":"chatcmpl-648","object":"chat.completion.chunk","created":1770941407,"model":"glm-4.6","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"Hello"},"finish_reason":null}]}
    data: {"id":"chatcmpl-648","object":"chat.completion.chunk","created":1770941407,"model":"glm-4.6","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"! How"},"finish_reason":null}]}
    data: {"id":"chatcmpl-648","object":"chat.completion.chunk","created":1770941407,"model":"glm-4.6","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":" can I"},"finish_reason":null}]}
    data: {"id":"chatcmpl-648","object":"chat.completion.chunk","created":1770941407,"model":"glm-4.6","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":" help you"},"finish_reason":null}]}
    data: {"id":"chatcmpl-648","object":"chat.completion.chunk","created":1770941407,"model":"glm-4.6","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":" with your"},"finish_reason":null}]}
    data: {"id":"chatcmpl-648","object":"chat.completion.chunk","created":1770941407,"model":"glm-4.6","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":" software engineering"},"finish_reason":null}]}
    data: {"id":"chatcmpl-648","object":"chat.completion.chunk","created":1770941407,"model":"glm-4.6","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":" tasks today"},"finish_reason":null}]}
    data: {"id":"chatcmpl-648","object":"chat.completion.chunk","created":1770941407,"model":"glm-4.6","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"?"},"finish_reason":null}]}
    data: {"id":"chatcmpl-648","object":"chat.completion.chunk","created":1770941407,"model":"glm-4.6","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":""},"finish_reason":"stop"}]}
    data: [DONE]
    

    See, no usage info is returned from them.

  7. rekram1-node commented on Feb 13, 2026

    @rekram1-node
    Collaborator

    Prolly need to send them a param to fix this, lookin

  8. iamhenry commented on Feb 13, 2026

    @iamhenry

    I'm not sure if it's a bug or what, but I used a sub agent to commit and then the usage appeared.
    this is kimi from zen but i started with glm 5 from ollama cloud

    Image Image
  9. rekram1-node commented on Feb 13, 2026

    @rekram1-node
    Collaborator

    "stream_options": {
    "include_usage": true
    }

    Hmm we already send this actually

  10. rekram1-node commented on Feb 13, 2026

    @rekram1-node
    Collaborator

    Confirmed w ollama team, this was a bug on their end, should be fixed now

  11. iamhenry commented on Feb 13, 2026

    @iamhenry

    dude, that was quick. thx!

  12. iamhenry commented on Feb 13, 2026

    @iamhenry

    confirmed it works

    Image
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions