Repository navigation
feat(assistant): add Opper as a provider - #1814
Conversation
Adds Opper, a European AI gateway with 700+ models from 50+ providers behind one OpenAI-compatible key, as an AI Assistant provider. It is one more Preset row: base URL https://api.opper.ai/v3/compat, key from OPPER_API_KEY, default model claude-sonnet-5-5. The preset comes after Requesty, so an Opper key never takes the place of another provider's when the first keyed provider is picked. Docs: the provider table and the web app note in the assistant guide, the --provider list in docs/cli.md and the CLI usage comment, and the README feature row. Disclosure: Opper is my startup. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
Resolve conflicts with the TrustedRouter preset by keeping both providers, Opper listed after TrustedRouter in the presets, tests, CLI help and docs. Disclosure: Opper is my startup. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
| label: "Opper", | ||
| api: Api::OpenAi, | ||
| base_url: "https://api.opper.ai/v3/compat", | ||
| model: "claude-sonnet-5-5", |
There was a problem hiding this comment.
Confidence: medium-low (not verified against the live API). The default model is the bare id claude-sonnet-5-5. Requesty, the closest preset with the same shape, uses the provider-prefixed anthropic/claude-sonnet-5-5, and gateways of this kind often expect a vendor/model id. If Opper's /v3/compat/models lists the id with a prefix, a new Opper user's first request will fail with the default. Please confirm the id against the models list the ↻ button returns and update both this line and the docs row in docs/user-guide/assistant.md, which says claude-sonnet-5-5. The test at tests.rs only checks the URL and header, not the model id, so it would not catch this.
Code reviewBugs
Security
Performance
Quality
AGENTS.md
I left 0 earlier concerns unposted because there were no prior review threads. Change sizeCompared with
|
📖 Docs preview
GitHub Pages takes a minute or two to publish a new commit. Newer commits from the fork aren't published until a maintainer adds the |
Summary
Adds Opper, a European AI gateway with 700+ models from 50+ providers behind one key, as an AI Assistant provider. It is one more
Presetrow, the same shape as the Requesty preset in #1423: base URLhttps://api.opper.ai/v3/compat, key fromOPPER_API_KEY, default modelclaude-sonnet-5-5. The ↻ button lists models from/modelswith the key. The preset comes after Requesty, so an Opper key never takes the place of another provider's when the first keyed provider is picked.Docs: the provider table and the web app note in docs/user-guide/assistant.md, the
--providerlist in docs/cli.md and the CLI usage comment, and the README feature row.Testing
crates/assistant/src/tests.rs: the preset fields, the model list request with a bearer key, and the first keyed order with Opper last.cargo xtask cilocally, so CI is the first run.https://web.rustgis.apptohttps://api.opper.ai/v3/compat/chat/completionsreturnsaccess-control-allow-origin: *and allowsAuthorizationandContent-Type, so the web app can call it.UI evidence
The only visible change is one more entry, "Opper", at the end of the Provider list in the assistant settings. I did not attach a screenshot.
Related issue
None.
Disclosure: Opper is my startup.
Summary by CodeRabbit
claude-sonnet-5-5.