Skip to content

feat: add Opper as an OpenAI-compatible provider - #449

Open
Felixkw12 wants to merge 1 commit into
ifixai-ai:mainfrom
Felixkw12:feat/add-opper-provider
Open

Felixkw12 wants to merge 1 commit into
ifixai-ai:mainfrom
Felixkw12:feat/add-opper-provider

Conversation

@Felixkw12

Copy link
Copy Markdown

Adds Opper as a named OpenAI-compatible provider, next to OpenRouter, Requesty and LLMTR. Files follow #441 one for one, with one addition in grading_vendor.

Opper is a European AI gateway: one key for 700+ models from OpenAI, Anthropic, Google, DeepSeek and others, at https://api.opper.ai/v3/compat. Keys are created at https://platform.opper.ai. Model IDs are bare pool names such as gpt-4o-mini or claude-sonnet-4-6, and Opper picks the route per request. An ID like aws/claude-sonnet-4-6-eu pins one route. The public model list is at https://api.opper.ai/v3/models.

Changes

  • ifixai/providers/opper.py: OpperProvider, the same shape as LLMTRProvider (cached AsyncOpenAI client, max_tokens ceiling, json_object on judge calls with the existing free text fallback, same error mapping). config.endpoint still overrides the base URL. Default model gpt-4o-mini, the model the Requesty entry defaults to.
  • Registered where a provider is named: resolver (REGISTERED_PROVIDERS, provider map, OPPER_API_KEY), CLI --provider choices, setup wizard and description, init key detection, model catalog default and suggestions, the pip install ifixai[opper] extra, docs/cli.md, the provider table in docs/testing-your-agent.md, and the adapter lists in test_sdk_timeout_native.py and test_sdk_pool_teardown.py.
  • grading_vendor: Opper IDs carry no vendor prefix, and a pinned route's prefix names the host, not the developer. So for opper the vendor comes from the model family: claude-sonnet-4-6 and aws/claude-sonnet-4-6-eu resolve to anthropic, gpt-4o-mini and azure/gpt-5.5 to openai. A Claude system under test through Opper with an Anthropic judge still gets the self-judge warning. With no model it stays opper.
  • Like the other gateways it is a pinned judge only: not in _JUDGE_PREFERENCE_ORDER or judge_fallbacks.json, so an OPPER_API_KEY alone never auto-selects a judge. Pass --judge-provider opper to use it that way.

Test plan

  • New ifixai/tests/providers/test_opper_registration.py: the feat: add LLMTR as an OpenAI-compatible provider #441 registration checks for opper, plus the vendor for pool names and pinned routes, and the self-judge warning case. Without the grading_vendor change, grading_vendor("opper", "claude-sonnet-4-6") returns opper, so the vendor and warning checks fail.
  • I have not run ruff, bandit, ifixai validate or pytest locally, so CI is the first run. I have not run ifixai run --provider opper against a fixture either, so there is no scorecard snippet yet. I can add one before merge if you want it.

Disclosure: Opper is my startup.

Adds Opper, a European AI gateway, as a named provider next to
OpenRouter, Requesty and LLMTR. The adapter has the same shape as
llmtr.py: base URL https://api.opper.ai/v3/compat, key from
OPPER_API_KEY, default model gpt-4o-mini. Like the other gateways it
is a pinned judge only.

Opper model IDs are bare pool names (claude-sonnet-4-6), and a pinned
route's prefix names the host, not the developer
(aws/claude-sonnet-4-6-eu). grading_vendor therefore reads the vendor
from the model family, so a Claude system under test through Opper
with an Anthropic judge still gets the self-judge warning.

Disclosure: Opper is my startup.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant