-
Notifications
You must be signed in to change notification settings - Fork 512
hostOverride
setting causes incorrect requests in AI Gateway
#11225
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
Comments
This is because the |
Yeah, but i found Ollama works fine. |
Have you tried doing the path replacement to match OpenRouter's expected
Edit: Ah, nevermind I see you're setting Right now we're forcing the path to There are a couple options:
@andy-fong might also have thoughts on the best approach here. |
Uh oh!
There was an error while loading. Please reload this page.
kgateway version
v1.2.1
Kubernetes Version
kind@v0.27.0
Describe the bug
I am exploring AiGateway and in the configure an LLM provider step, I want to use Openrouter instead of directly using OpenAI. From EP-10494: Add Support for AI Gateway APIs, I learned about using proxy requests:
HTTPRoute
is as follows:It is not actually requesting the openrouter API, and
content-type: text/html
.Expected Behavior
content-type: text/html; charset=utf-8
should beContent-Type: application/json
Steps to reproduce the bug
Additional Environment Detail
No response
Additional Context
The text was updated successfully, but these errors were encountered: