Skip to content
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

More granular control over supported 3rd party API provider features #3040

Open
xl0 opened this issue Sep 17, 2024 · 0 comments
Open

More granular control over supported 3rd party API provider features #3040

xl0 opened this issue Sep 17, 2024 · 0 comments
Labels
ai/provider enhancement New feature or request

Comments

@xl0
Copy link

xl0 commented Sep 17, 2024

Feature Description

I've noticed that I have to use the "strict" mode with OpenAI to get the usage when streaming.
I would love to see more granular control, for example

createOpenAI({
    ...
    apiCompatibility: {
         stream_usage: true;
         [  ... possible other features in the future ... ]
    }
});

### Use Case

_No response_

### Additional context

_No response_
@lgrammel lgrammel added enhancement New feature or request ai/provider labels Sep 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ai/provider enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants