open-code-review icon indicating copy to clipboard operation
open-code-review copied to clipboard

Docs example: a remote OpenAI-compatible /v1 root as a custom provider?

Open PowerTokens opened this issue 2 weeks ago • 0 comments

Issue Type

Missing documentation

Document Location

https://open-codereview.ai/docs/configuration (Custom providers); source: pages/src/content/docs/en/configuration.md

Description

ocr config provider already lets people pick a built-in or custom provider, and the configuration docs show a custom protocol openai entry with a URL like https://gateway.internal.com/v1. That looks like it should work with a hosted OpenAI-compatible Chat Completions /v1 root, not only an internal or local server.

Suggested Change

If anyone wants to point a custom provider at a hosted OpenAI-compatible gateway (for models such as GLM, Qwen, MiniMax, or DeepSeek):

ocr config set provider                            powertokens
ocr config set custom_providers.powertokens.url      https://api.powertokens.ai/v1
ocr config set custom_providers.powertokens.protocol openai
ocr config set custom_providers.powertokens.model    glm-5.3
ocr config set custom_providers.powertokens.api_key  "$POWERTOKENS_API_KEY"

Use the exact model id from that gateway's catalog (examples that work today: glm-5.3, qwen3-max, MiniMax-M3; for DeepSeek use deepseek-v3-2-251201). Happy to sanity-check a snippet if something 401s or a model id doesn't resolve.

Disclosure: I work on PowerTokens (an OpenAI Chat Completions–compatible API for those China-origin models). Not asking for a built-in provider listing — just sharing the Base URL shape in case a remote custom-provider example in the docs would help. The current example uses an internal host; a public gateway example might make the path clearer.

PowerTokens avatar Nov 17 '26 01:11 PowerTokens