Skip to content

Add OpenPaths model provider#3761

Open
lee101 wants to merge 1 commit into
chatboxai:mainfrom
lee101:openpaths-provider
Open

Add OpenPaths model provider#3761
lee101 wants to merge 1 commit into
chatboxai:mainfrom
lee101:openpaths-provider

Conversation

@lee101

@lee101 lee101 commented Jun 16, 2026

Copy link
Copy Markdown

What

Adds OpenPaths as a first-class model provider.

OpenPaths is an OpenAI-compatible model gateway (same role as OpenRouter): a single
endpoint that routes to many underlying models. It exposes the standard OpenAI API at
https://openpaths.io/v1 (chat completions + /v1/models), authenticates with a
Bearer API key, and offers an openpaths/auto router plus task-specific auto-*
tiers (code / fast / cheap / reasoning / vision / image).

Because it is fully OpenAI-compatible, the implementation mirrors the existing
OpenRouter / SiliconFlow provider definitions rather than introducing any new SDK.

Changes

  • src/shared/types/provider.ts — add OpenPaths = 'openpaths' to ModelProviderEnum.
  • src/shared/providers/definitions/openpaths.ts — provider definition: type: OpenAI,
    apiHost: https://openpaths.io/v1, curated openpaths/auto + tier model ids, and
    links back to openpaths.io.
  • src/shared/providers/definitions/models/openpaths.ts — model class extending the
    shared OpenAICompatible base, pointed at the OpenPaths gateway (model listing reuses
    the standard /v1/models fetch).
  • src/shared/providers/index.ts — register the provider in the registry.
  • src/shared/models/index.ts — add the provider name-hash entry (required, the hash is
    Record<ModelProviderEnum, string>) and a menu option (not featured).
  • src/shared/utils/llm_utils.ts — list OpenPaths among the OpenAI-compatible providers.
  • src/renderer/static/icons/providers/openpaths.png — provider icon.

The change is purely additive; no existing provider is modified and OpenPaths is not
placed ahead of incumbents in any featured list.

Testing

  • npx tsc --noEmit — no new type errors introduced (the only errors present are
    pre-existing TanStack Router routeTree.gen codegen errors, unrelated to this change
    and present on a clean checkout before the build step generates that file).
  • biome lint on the changed files — clean for the new files (the only warnings are
    pre-existing console.debug calls in providers/index.ts).

🤖 Generated with Claude Code

OpenPaths is an OpenAI-compatible model gateway (same role as OpenRouter).
This registers it as a first-class provider, mirroring the OpenRouter /
SiliconFlow provider definitions:

- Add `OpenPaths = 'openpaths'` to ModelProviderEnum.
- Add provider definition (apiHost https://openpaths.io/v1, OpenAI type)
  with the curated openpaths/auto + tier model ids.
- Add OpenAICompatible-based model class pointing at the OpenPaths gateway.
- Register the provider in the providers index and provider name hash /
  menu list, and mark it OpenAI-compatible in llm_utils.
- Add the provider icon.

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

coderabbitai Bot commented Jun 16, 2026

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: 8e07c1ca-6658-4d8f-ac7d-c0cf771808c6

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

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

Comment @coderabbitai help to get the list of available commands and usage tips.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: f6c573a8a3

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +57 to +59
modelId: 'openpaths/auto-image',
nickname: 'Auto Image',
capabilities: ['vision'],

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Remove image-generation router from chat defaults

When OpenPaths is configured, this entry is treated as a chat model because ModelSelector includes models with no type or type === 'chat', but OpenPaths documents openpaths/auto-image as an image-generation model served via the image endpoint. Since the new OpenPaths class extends OpenAICompatible without image-generation support, selecting “Auto Image” in a chat session sends it through chat completions with vision capabilities and will fail for users who pick that default model; either mark/remove it from the chat defaults or add the provider to the image-generation path.

Useful? React with 👍 / 👎.

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