Skip to content

feat(openai-compatible): passing config to chat models #6849

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

samurai00
Copy link

Background

Cannot pass the stream_options to the OpenAICompatible Providers.

Summary

  • Allow passing config to chat models
  • Refine the stream_options handling in OpenAICompatibleChatLanguageModel to correctly omit the stream_options field when includeUsage is false/undefined, preventing undefined from being sent in the request body.

Verification

Tasks

  • Tests have been added / updated (for bug fixes / features)
  • Documentation has been added / updated (for bug fixes / features)
  • A patch changeset for relevant packages has been added (for bug fixes / features - run pnpm changeset in the project root)
  • Formatting issues have been fixed (run pnpm prettier-fix in the project root)

Future Work

Related Issues

Fixes #6774

Refine the `stream_options` handling in `OpenAICompatibleChatLanguageModel` to correctly omit the `stream_options` field when `includeUsage` is false/undefined, preventing `undefined` from being sent in the request body.
@samurai00 samurai00 force-pushed the feat-passing-config-to-chat-models branch from 1d638ae to f4f171d Compare June 25, 2025 02:16
@samurai00 samurai00 changed the title Feat passing config to chat models feat(openai-compatible): passing config to chat models Jun 25, 2025
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.

providerOptions.stream_options No Longer Effective in Latest SDK, Preventing Usage Data for DeepSeek/Volcengine
1 participant