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

x-stainless-os header being added in mom-Mistral api requests #294

Open
jvsteiner opened this issue Jun 14, 2024 · 0 comments
Open

x-stainless-os header being added in mom-Mistral api requests #294

jvsteiner opened this issue Jun 14, 2024 · 0 comments

Comments

@jvsteiner
Copy link

I have a custom OpenAI compatible endpoint I am trying to use (at runpod in a serverless environment). I created a customer endpoint, based on the OpenAPI pattern in the settings. Unfortunately, I get the following error on the developer console:

Access to fetch at 'https://api.runpod.ai/v2/{my_endpoint_id}/openai/v1/chat/completions' from origin 'app://obsidian.md' has been blocked by CORS policy: Request header field x-stainless-os is not allowed by Access-Control-Allow-Headers in preflight response.

I searched the repository for x-stainless-os and the only place I see this header is in src/LLMProviders/langchain/mistralaiChat.tsx which is the Mistral object. Any idea why is would be getting added to a request made using the OpenAI pattern? the actual production OpenAI endpoints don't care about it, but the runpod endpoints do, and afaict, there is not any way to add custom headers at runpod.

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

No branches or pull requests

1 participant