Skip to content
Merged
Show file tree
Hide file tree
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
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1158,7 +1158,7 @@ Cerebras (cerebras/) → Llama/Qwen world-fastest — 1M tok/day
| `claude-haiku-4.5` | `kr/` | **Unlimited** | No reported daily cap |
| `claude-opus-4.6` | `kr/` | **Unlimited** | Latest Opus via Kiro |

### 🟢 QODER MODELS (Free OAuth — No Credit Card)
### 🟢 QODER MODELS (Free PAT via qodercli)

| Model | Prefix | Limit | Rate Limit |
| ------------------ | ------ | ------------- | --------------- |
Expand All @@ -1168,6 +1168,9 @@ Cerebras (cerebras/) → Llama/Qwen world-fastest — 1M tok/day
| `minimax-m2.1` | `if/` | **Unlimited** | No reported cap |
| `kimi-k2` | `if/` | **Unlimited** | No reported cap |

> Recommended connection method: **Personal Access Token + `qodercli`**. Browser OAuth is
> experimental and disabled by default unless `QODER_OAUTH_*` environment variables are configured.

### 🟡 QWEN MODELS (Device Code Auth)

| Model | Prefix | Limit | Rate Limit |
Expand Down
4 changes: 2 additions & 2 deletions open-sse/config/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ export const OAUTH_ENDPOINTS = {
auth: "https://chat.qwen.ai/api/v1/oauth2/device/code", // From CLIProxyAPI
},
qoder: {
token: "https://qoder.cn/oauth/token",
auth: "https://qoder.cn/oauth",
token: process.env.QODER_OAUTH_TOKEN_URL || "",
auth: process.env.QODER_OAUTH_AUTHORIZE_URL || "",

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

WARNING: If env vars not set, OAuth endpoints default to empty string. Ensure documentation clarifies QODER_OAUTH_* vars required for browser OAuth.

},
github: {
token: "https://github.com/login/oauth/access_token",
Expand Down
10 changes: 4 additions & 6 deletions open-sse/config/providerRegistry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -325,19 +325,17 @@ export const REGISTRY: Record<string, RegistryEntry> = {
alias: "if",
format: "openai",
executor: "qoder",
baseUrl: "https://apis.qoder.cn/v1/chat/completions",
authType: "oauth",
baseUrl: "https://api.qoder.com/v1/chat/completions",
authType: "apikey",
authHeader: "bearer",
headers: {
"User-Agent": "Qoder-Cli",
},
oauth: {
clientIdEnv: "QODER_OAUTH_CLIENT_ID",
clientIdDefault: "10009311001",
clientSecretEnv: "QODER_OAUTH_CLIENT_SECRET",
clientSecretDefault: "",
tokenUrl: "https://qoder.cn/oauth/token",
authUrl: "https://qoder.cn/oauth",
tokenUrl: process.env.QODER_OAUTH_TOKEN_URL || "",
authUrl: process.env.QODER_OAUTH_AUTHORIZE_URL || "",
},
models: [
{ id: "qoder-rome-30ba3b", name: "Qoder ROME" },
Expand Down
Loading