-
Notifications
You must be signed in to change notification settings - Fork 20
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Which version of assistant are you using?
2.13.0
Which version of Nextcloud are you using?
32.0.6
Which browser are you using? In case you are using the phone App, specify the Android or iOS version and device please.
Firefox
Describe the Bug
I get error messages of being unauthorized with a valid api key. I can send valid requests with the same key like this:
curl --header "Authorization: Bearer MY_API_KEY" https://api.example.com/v1/models
{"object":"list","data":[{"id":"0 - Ministral-3-14B-Instruct-2512 - The latest Ministral from Dec.2.2025" ...
(redacted infos)
I have a feeling, that the length (60 to 128 chars) OR a . being present inside the API key is causing this, but at this point I have no idea.
Protocol message:
{"reqId":"Ia7cxGGdSei1dhF2NcF6","level":2,"time":"2026-02-24T09:03:15+00:00","remoteAddr":"REDACTED","user":"REDACTED","app":"integration_openai","method":"GET","url":"/apps/integration_openai/models","scriptName":"/index.php","message":"Error retrieving models (exc): API request error: Invalid API Key/Basic Auth: Client error: `GET https://api.example.com/v1/models` resulted in a `401 Unauthorized` response:\nYou must provide a valid API key. Obtain one from REDACTED_THIRD_PARTY\n\n","userAgent":"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:147.0) Gecko/20100101 Firefox/147.0","version":"32.0.6.1","data":{"app":"integration_openai"},"id":"699d6acc9f4e1"}
Expected Behavior
I expect this to just work
To Reproduce
Create a really long API key containing dots and try if it continues to work. I don't know if this is the core issue here
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working