Skip to content

feat(assistant): add Opper as a provider - #1814

Merged
giswqs merged 2 commits into
opengeos:mainfrom
Felixkw12:feat/assistant-opper-provider
Nov 12, 2026
Merged

giswqs merged 2 commits into
opengeos:mainfrom
Felixkw12:feat/assistant-opper-provider

Conversation

@Felixkw12

@Felixkw12 Felixkw12 commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

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 Preset row, the same shape as the Requesty preset in #1423: base URL https://api.opper.ai/v3/compat, key from OPPER_API_KEY, default model claude-sonnet-5-5. The ↻ button lists models from /models with 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 --provider list in docs/cli.md and the CLI usage comment, and the README feature row.

Testing

  • New tests in crates/assistant/src/tests.rs: the preset fields, the model list request with a bearer key, and the first keyed order with Opper last.
  • I have not run cargo xtask ci locally, so CI is the first run.
  • A browser preflight from https://web.rustgis.app to https://api.opper.ai/v3/compat/chat/completions returns access-control-allow-origin: * and allows Authorization and Content-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

  • New Features
    • Added Opper as a supported AI model provider in the assistant and CLI. Configure it with an Opper API key; its default model is claude-sonnet-5-5.
    • Opper is listed as a provider that supports direct browser requests.
  • Documentation
    • Updated the README, CLI reference, and assistant guide with Opper setup details and provider options, including the required API key environment variable.

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>
@coderabbitai

coderabbitai Bot commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The assistant adds Opper as a model provider with an OpenAI-compatible endpoint, a default model, and an API-key setting. Tests cover provider selection and model-list configuration. Provider listings and documentation now include Opper.

Changes: Opper Provider Support

Layer / File(s) Summary
Provider preset and model-list configuration
crates/assistant/src/provider.rs, crates/assistant/src/tests.rs
The Opper preset defines its endpoint, default model, API-key environment variable, and authentication settings. A test checks the model-list request configuration.
Provider selection and listings
crates/assistant/src/tests.rs, README.md, apps/rustgis-cli/src/main.rs, docs/cli.md, docs/user-guide/assistant.md
A test checks Opper’s position in keyed-provider selection. The README and CLI documentation list Opper as an option. The assistant guide adds Opper to its provider table and web-app provider list.

Estimated code review effort: 2 (Simple) | ~8 minutes

Change: Feature

Possibly related PRs

  • opengeos/RustGIS#1423: Adds the Requesty preset and provider-ordering test that the Opper preset follows.

Suggested labels: enhancement

Suggested reviewers: giswqs, jperla, thibaultjaigu

Merge Risk: Minimal · up to 47a48

This adds Opper as an assistant provider with a preset, tests, and documentation. No concrete merge-blocking risk was identified.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title "feat(assistant): add Opper as a provider" names the primary change. The raw summary shows a new Opper preset in PRESETS, its tests, and matching docs, all for the AI Assistant provider list…
Description check Passed The description follows the repository template. It has Summary, Testing, UI evidence, and Related issue sections. The Summary explains the change and the reason for placing Opper after Requesty. Test…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title "feat(assistant): add Opper as a provider" names the primary change. The raw summary shows a new Opper preset in PRESETS, its tests, and matching docs, all for the AI Assistant provider list. The title is specific and concise, and it follows a conventional commit style.

Full details: Description check

Explanation

The description follows the repository template. It has Summary, Testing, UI evidence, and Related issue sections. The Summary explains the change and the reason for placing Opper after Requesty. Testing lists new tests, notes that cargo xtask ci was not run locally, and gives a browser preflight result. UI evidence states the only visible change, the Opper entry in the provider list, and that no screenshot is attached. Related issue says None. The template asks for a screenshot when UI changes, but the author describes a small list entry and gives the reason no screenshot was attached. The author also discloses a conflict of interest, which is a useful addition.

Finishing Touches

Generate unit tests (beta)

  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

A rabbit found a model key,
And hopped where Opper’s settings be.
The provider list grew one name,
Tests checked its place and API frame.
The guide now shows the way to go,
While carrots wait beneath the snow.

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Advanced
  • Run ID: 4a94f125-29fb-4e3a-bce0-58c390a218cc
Commits

Reviewing files that changed from the base of the PR and between ef0ca1b and 47a4891.

Files selected for processing: 6

  • README.md
  • apps/rustgis-cli/src/main.rs
  • crates/assistant/src/provider.rs
  • crates/assistant/src/tests.rs
  • docs/cli.md
  • docs/user-guide/assistant.md

Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 6 remain after this review.

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>
@giswqs giswqs added the claude-review Apply to run the Claude code review on this PR (remove and re-add to run again) label Nov 12, 2026
label: "Opper",
api: Api::OpenAi,
base_url: "https://api.opper.ai/v3/compat",
model: "claude-sonnet-5-5",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@github-actions

Copy link
Copy Markdown
Contributor

Code review

Bugs

  • No confirmed bugs. The preset fields, the /models URL and bearer header, and the first_keyed ordering (Opper last, after Requesty and TrustedRouter) are consistent with how Config::from_env, choose, first_keyed, the CLI and the desktop pane use PRESETS. (confidence: high)
  • Default model id claude-sonnet-5-5 (crates/assistant/src/provider.rs:162) may not be valid on Opper. Requesty, the closest analogue, uses the prefixed anthropic/claude-sonnet-5-5. I could not check Opper's catalogue offline. Posted as an inline comment. (confidence: medium-low)

Security

  • No issues found. The key is read only from OPPER_API_KEY, sent as a bearer token to the default https:// base URL, and the preset has no URL env override. (confidence: high)

Performance

  • None.

Quality

  • The test opper_lists_its_models_with_a_bearer_key checks the URL and header but not the default model id, so the model issue above would go uncaught. Left for the release quality pass.
  • The provider list is maintained by hand in four places (CLI usage comment, docs/cli.md, docs/user-guide/assistant.md, README). The PR updates all four correctly, but nothing enforces that they match PRESETS. Left for the release quality pass.

AGENTS.md

  • Test-both-ways, never-crash, and never-silent rules do not apply to a new preset row. No violations found.
  • Non-code note: the PR description discloses that Opper is the author's company. The repo's rules do not forbid this, but maintainers may want to weigh it when accepting a commercial provider.
  • Unverified claim: the docs say Opper accepts direct browser requests. That rests on the author's preflight check, which I could not repeat here.

I left 0 earlier concerns unposted because there were no prior review threads.

Change size

Compared with main (merge base fbc5bab to PR head 47a4891).

Measure Value
Files changed 6 (0 added, 6 modified, 0 removed, 0 renamed)
Size before 454.4 KB
Size after 457.6 KB
Total size change +1.1 KB
Path Before After Change
crates/assistant/src/tests.rs 266.0 KB 266.6 KB +669 B
crates/assistant/src/provider.rs 70.9 KB 71.3 KB +329 B
docs/user-guide/assistant.md 27.1 KB 27.2 KB +108 B
docs/cli.md 10.6 KB 10.6 KB +9 B
README.md 26.1 KB 26.1 KB +7 B
apps/rustgis-cli/src/main.rs 53.8 KB 53.8 KB +6 B

@github-actions

Copy link
Copy Markdown
Contributor

📖 Docs preview

Item Value
Preview https://preview.rustgis.app/pr-1814/
Web app https://preview.rustgis.app/pr-1814/app/
Commit 47a4891

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 preview label (once per commit).

@giswqs
giswqs merged commit 09922f2 into opengeos:main Nov 12, 2026
40 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

claude-review Apply to run the Claude code review on this PR (remove and re-add to run again)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants