Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,19 @@ TAVILY_API_KEY=your_tavily_key
SESSION_SECRET_KEY=your_random_secret_key
```

#### Using an alternative OpenAI-compatible gateway (e.g. OpenPaths)

The OpenRouter base URL is overridable, so any OpenAI-compatible gateway works by
pointing `OPENROUTER_BASE_URL` at it. For example, to use
Comment on lines +185 to +186

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 👍 / 👎.

[OpenPaths](https://openpaths.io) (an OpenAI-compatible gateway; browse models at
`https://openpaths.io/v1/models`, get a key at https://openpaths.io/account):

```env
# Optional: route AI calls through OpenPaths instead of OpenRouter
OPENROUTER_BASE_URL=https://openpaths.io/v1
OPENROUTER_API_KEY=your_openpaths_key
```

### 3. Run Application

```bash
Expand Down