Skip to content

Add OpenPaths as an OpenAI-compatible endpoint option - #4

Open
lee101 wants to merge 1 commit into
sheeki03:mainfrom
lee101:openpaths-support
Open

Add OpenPaths as an OpenAI-compatible endpoint option#4
lee101 wants to merge 1 commit into
sheeki03:mainfrom
lee101:openpaths-support

Conversation

@lee101

@lee101 lee101 commented Jun 16, 2026

Copy link
Copy Markdown

What

Documents OpenPaths as a first-class, OpenAI-compatible endpoint option for analystOS, alongside the existing OpenRouter and NanoGPT paths.

OpenPaths is an OpenAI-compatible gateway (like OpenRouter). Because OpenRouterClient already reads its base URL from OPENROUTER_BASE_URL (defined in src/config.py with a default), OpenPaths works out of the box by pointing that variable at https://openpaths.io/v1 — no code changes required.

Changes

  • README.md: add a short, additive note in the Configuration section showing how to route AI calls through OpenPaths by setting OPENROUTER_BASE_URL=https://openpaths.io/v1 and OPENROUTER_API_KEY to an OpenPaths key. This also surfaces the (previously undocumented) OPENROUTER_BASE_URL override.

Fully backward-compatible: OpenRouter remains the default; nothing is removed.

Testing

  • Docs-only change; no code touched.
  • Verified src/config.py defaults OPENROUTER_BASE_URL to https://openrouter.ai/api/v1 and that OpenRouterClient (src/openrouter.py) builds request URLs from this base, so overriding it transparently routes traffic to any OpenAI-compatible gateway.

🤖 Generated with Claude Code

OpenRouter's base URL is already env-overridable, so any OpenAI-compatible
gateway works by setting OPENROUTER_BASE_URL. Add a short, additive README
note showing how to route AI calls through OpenPaths (https://openpaths.io/v1)
while keeping OpenRouter as the default. No code changes.

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

coderabbitai Bot commented Jun 16, 2026

Copy link
Copy Markdown

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: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 97d69ad0-d870-4924-9b07-5e75375cad71

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

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: 365123a143

ℹ️ 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 thread README.md
Comment on lines +185 to +186
The OpenRouter base URL is overridable, so any OpenAI-compatible gateway works by
pointing `OPENROUTER_BASE_URL` at it. For example, to use

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 Do not claim OPENROUTER_BASE_URL covers every AI path

This documentation is overbroad for users enabling Deep Research or LangExtract: those AI paths do not read OPENROUTER_BASE_URL; src/services/odr_service.py overwrites OPENAI_BASE_URL with https://openrouter.ai/api/v1, and src/services/langextract_service.py does the same when the OpenAI base URL env vars are unset. With the README's OpenPaths-only example, those features will send the OpenPaths key to OpenRouter and fail authentication, so the note should either scope the claim to OpenRouterClient/classic calls or document the additional base URL variables/code changes needed for ODR/LangExtract.

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