diff --git a/README.md b/README.md index 4bcb4ca..9ae7f20 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ # opencode-provider-switch (`olpx`) +English README: `README_EN.md` + `olpx` 是 OpenCode LocalProxy CLI,给 OpenCode 使用的本地代理。 它解决的问题很简单: diff --git a/examples/opencode.jsonc b/examples/opencode.jsonc new file mode 100644 index 0000000..7164477 --- /dev/null +++ b/examples/opencode.jsonc @@ -0,0 +1,36 @@ +{ + // Sanitized example for `olpx provider import-opencode --from ./examples/opencode.jsonc` + "model": "su8/gpt-5.4", + "small_model": "codex/GPT-5.4-mini", + "provider": { + "su8": { + "npm": "@ai-sdk/openai", + "name": "SU8 OpenAI-Compatible", + "options": { + "baseURL": "https://cn2.su8.codes/v1", + "apiKey": "sk-example-su8-replace-me" + }, + "models": { + "gpt-5.4": { + "name": "gpt-5.4" + } + } + }, + "codex": { + "npm": "@ai-sdk/openai", + "name": "Codex OpenAI-Compatible", + "options": { + "baseURL": "https://api-vip.codex-for.me/v1", + "apiKey": "sk-example-codex-replace-me" + }, + "models": { + "GPT-5.4": { + "name": "GPT-5.4" + }, + "GPT-5.4-mini": { + "name": "GPT-5.4-mini" + } + } + } + } +}