Skip to content

feat(custom-provider): add streaming support for providers requiring it (e.g., Fireworks AI)#995

Closed
fat-operator wants to merge 2 commits intoHKUDS:mainfrom
fat-operator:feat/custom-provider-streaming
Closed

feat(custom-provider): add streaming support for providers requiring it (e.g., Fireworks AI)#995
fat-operator wants to merge 2 commits intoHKUDS:mainfrom
fat-operator:feat/custom-provider-streaming

Conversation

@fat-operator
Copy link
Copy Markdown
Contributor

@fat-operator fat-operator commented Feb 22, 2026

Summary

  • Add stream field to ProviderSpec and enable it for the custom provider
  • CustomProvider now aggregates streamed ChatCompletionChunks, supporting content, tool calls, reasoning content, and usage tracking
  • LiteLLMProvider also checks the stream flag and uses litellm.stream_chunk_builder to reassemble streamed responses
  • Fixes providers like Fireworks AI that reject non-streamed requests when max_tokens > 4096

…=true

Add stream field to ProviderSpec and enable it for the custom provider.
CustomProvider now aggregates streamed ChatCompletionChunks, supporting
content, tool calls, reasoning content, and usage tracking.
LiteLLMProvider also checks the stream flag and uses
litellm.stream_chunk_builder to reassemble streamed responses.
This fixes providers like Fireworks AI that reject non-streamed
requests when max_tokens > 4096.
@fat-operator fat-operator force-pushed the feat/custom-provider-streaming branch from 7bec3f8 to cc04233 Compare February 22, 2026 12:47
@fat-operator fat-operator changed the title feat(custom-provider): add streaming support for providers requiring stream=true feat(custom-provider): add streaming support for providers requiring it (e.g., Fireworks AI) Feb 22, 2026
@fat-operator fat-operator deleted the feat/custom-provider-streaming branch March 5, 2026 19:08
WTHDonghai pushed a commit to WTHDonghai/nanobot that referenced this pull request Apr 2, 2026
WTHDonghai pushed a commit to WTHDonghai/nanobot that referenced this pull request Apr 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant