-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Description
Before submitting your bug report
- I've tried using the "Ask AI" feature on the Continue docs site to see if the docs have an answer
- I believe this is a bug. I'll try to join the Continue Discord for questions
- I'm not able to find an open issue that reports the same bug
- I've seen the troubleshooting guide on the Continue Docs
Relevant environment info
- OS: Linux
- Continue version: 1.0.30
- IDE version: IntelliJ IDEA Community 2025.1
- Model: o4-mini (self-hosted)
- config:
models:
- name: my o4-mini
provider: openai
model: o4-mini
apiBase: https://acme.com/some/path
requestOptions:
headers:
Authorization: Bearer eyYo…
my-hdr: barDescription
When trying to use a self-hosted openai model, the server error response indicates that Continue doesn't send the Authorization header as it should.
This does not happen with a self-hosted gemini model, where our server expects the same token and successfully receives it (indicated by absence of error).
Investigating with a proxy, I see this duplication in the raw headers: ['authorization', 'Bearer', 'authorization', 'Bearer [myToken]']. Now the first value, 'Bearer' (token missing), seems to win – at least that's what Node.js' http module makes it into.
Though I can't see the headers received by our server when disabling the proxy, the finding suggests that Continue sends a duplicate Authorization header in my case.
The token has this structure, I would say:
[a-zA-Z0-9]{250}\.[a-zA-Z0-9]{6590}\.[a-zA-Z0-9_-]{342}
Metadata
Metadata
Assignees
Labels
Type
Projects
Status