Replies: 2 comments 1 reply
|
Thanks for the clear write up, @AdaemmerP! The short answer to your first question is that the For a custom OpenAI-compatible provider, Positron uses the base URL exactly as you write it. Model discovery requests The JSON schema for Where the rejection probably comes fromThere is no format rule in Positron that rejects a trailing This can invert the result you expect. A base URL without What would help us confirm this is if you can:
For your second question, Positron stores API keys in the OS credential store, so There is, however, an environment variable path for the built-in OpenAI-compatible provider. Try setting |
|
Thanks a lot for taking the time and for the detailed explanation, @juliasilge! Here's what I see (Positron 2026.09.0):
So the check seems to time out with the real key, while it accepts a key that the gateway actually rejects. |
Uh oh!
There was an error while loading. Please reload this page.
There's an inconsistency in how Posit Assistant handles the base URL for custom providers:
Question 1
Is the UI's rejection of a trailing /v1 a bug, or is this intended behavior (with manual editing of providers.json expected as a workaround)? If intended, could you explain why the UI disallows /v1 when the underlying API requires it . Is the /v1 appended automatically somewhere downstream, and if so, why doesn't that happen for custom providers?
Question 2
Separately: is there a supported way to store the API token via the filesystem or providers.json directly, rather than through the UI? We're aware of the security tradeoffs, but we'd like to enable the Assistant for students ahead of a full launch, and provisioning tokens outside the UI would help with that rollout.
All reactions