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).
OpenAI-Beta
header is only required if you use OpenAI beta features (like the Assistant API).ChatOpenAI
doesn't use any beta API. HoweverOpenAIClient
adds this header by default, which seems to cause issues with some OpenAI compatible APIs (like OpenRouter).