Repository navigation
fix(provider): pass Gitlab token to authorize and use token for model discovery - #37104
thomwiggers wants to merge 1 commit into
Conversation
|
Thanks for your contribution! This PR doesn't have a linked issue. All PRs must reference an existing issue. Please:
See CONTRIBUTING.md for details. |
|
Thanks for updating your PR! It now meets our contributing guidelines. 👍 |
Forward the entered apiKey as `token` in authorizeApi inputs, and gate model discovery on the resolved `token` rather than `apiKey` so OAuth (GitLab Duo) flows discover models correctly. Co-Authored-By: Claude Opus 4.8 <[email protected]> Claude-Session: https://claude.ai/code/session_011nBvQs5zGuquuW8JvHPUUJ
becf534 to
92c69de
Compare
|
Automated PR Cleanup Thank you for contributing to opencode. Due to the high volume of PRs from users and AI agents, we periodically close older PRs using automated criteria so maintainers can focus review time on the most active and community-supported contributions. This PR was closed because it matched the following cleanup criteria:
PRs created within the last month are not affected by this cleanup. If you believe this PR was closed incorrectly, or if you are still actively working on it, please leave a comment explaining why it should be reopened. A maintainer can review and reopen it if appropriate. Thanks again for taking the time to contribute. |
Forward the entered apiKey as
tokenin authorizeApi inputs, and gate model discovery on the resolvedtokenrather thanapiKeyso OAuth (GitLab Duo) flows discover models correctly.Issue for this PR
Closes #37107
Type of change
What does this PR do?
duo-workflow-) models are dependent on the specific namespace that's loaded and discovery of models thus requires you to be logged in correctly. This wires through the key correctly if it's provided as an environment variableHow did you verify your code works?
I have run this code against a Gitlab Enterprise self-hosted server and used it to run OpenCode.
Checklist
If you do not follow this template your PR will be automatically rejected.