Skip to content

bug(llm): watsonx streaming POSTs to non-streaming /ml/v1/text/chat endpoint #942

Closed

Description

@AmitoVrito

WatsonxLLM.stream_with_messages POSTs to /ml/v1/text/chat with a "stream": true body field. IBM watsonx.ai does not stream from that endpoint — streaming is a dedicated endpoint, /ml/v1/text/chat_stream, and stream is not part of the chat request schema.

Against the real API this either returns a single non-SSE JSON body (no incremental streaming, higher latency; the defensive parser masks it) or errors on the unknown field. The respx contract test hid this by mocking an SSE response against the /ml/v1/text/chat URL.

Introduced in #941 (src/synapsekit/llm/watsonx.py). Falls in the recurring "wrong-real-API" backend-integration bug class.

Fix: route the streaming path to /ml/v1/text/chat_stream and drop the stream body field; assert the chat_stream path in the streaming contract test so it can't regress.

Activity

  1. added
    bug
    on Aug 29, 2026
  2. added 2 commits that reference this issue on Sep 12, 2026
    d6f4695
    f42fb72
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions