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

refactor: Don't send OpenAI-Beta header in ChatOpenAI #511

Merged
merged 1 commit into from
Jul 29, 2024
Merged

Conversation

davidmigloz
Copy link
Owner

@davidmigloz davidmigloz commented Jul 29, 2024

OpenAI-Beta header is only required if you use OpenAI beta features (like the Assistant API). ChatOpenAI doesn't use any beta API. However OpenAIClient adds this header by default, which seems to cause issues with some OpenAI compatible APIs (like OpenRouter).

@davidmigloz davidmigloz self-assigned this Jul 29, 2024
@davidmigloz davidmigloz added t:enhancement New feature or request p:langchain_openai langchain_openai package. labels Jul 29, 2024
@davidmigloz davidmigloz added this to the v0.8.0 milestone Jul 29, 2024
@davidmigloz davidmigloz merged commit 0e532ba into main Jul 29, 2024
1 check passed
@davidmigloz davidmigloz deleted the openai-beta branch July 29, 2024 16:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
p:langchain_openai langchain_openai package. t:enhancement New feature or request
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

1 participant