Bug Report
Installation Method
Docker
Environment
Confirmation:
Expected Behavior:
When I'm calling the API (ollama or openai endpoints) with the API key it should accept it
Actual Behavior:
I get a 403 with the following detail
{
"detail": "Use of API key is not enabled in the environment."
}
Description
Bug Summary:
Even if ENABLE_API_KEY is True the api_key is not accepted any more.
Reproduction Details
Steps to Reproduce:
1/ Install the version 0.4.8 enable the API Key Auth.
2/ Any call to the api using the API key is working
3/ Upgrade to version 0.5.1
4/ Verify in the Admin UI that Enable API Key Auth is still enabled
5/ Any call to the api using the API key is receiving a 403 "Use of API key is not enabled in the environment."
Logs and Screenshots
Docker Container Logs:
NFO: 10.62.42.19:0 - "GET /openai/models HTTP/1.1" 403 Forbidden
Screenshots/Screen Recordings (if applicable):

Additional Information
For what I've seen this is related to this commit
a2366a2
Bug Report
Installation Method
Docker
Environment
Confirmation:
Expected Behavior:
When I'm calling the API (ollama or openai endpoints) with the API key it should accept it
Actual Behavior:
I get a 403 with the following detail
Description
Bug Summary:
Even if ENABLE_API_KEY is True the api_key is not accepted any more.
Reproduction Details
Steps to Reproduce:
1/ Install the version 0.4.8 enable the API Key Auth.
2/ Any call to the api using the API key is working
3/ Upgrade to version 0.5.1
4/ Verify in the Admin UI that Enable API Key Auth is still enabled
5/ Any call to the api using the API key is receiving a 403 "Use of API key is not enabled in the environment."
Logs and Screenshots
Docker Container Logs:
NFO: 10.62.42.19:0 - "GET /openai/models HTTP/1.1" 403 Forbidden
Screenshots/Screen Recordings (if applicable):

Additional Information
For what I've seen this is related to this commit
a2366a2