docs: restore sanitized example config
This commit is contained in:
parent
73b8fe0bc4
commit
9fe60b501e
@ -1,5 +1,7 @@
|
||||
# opencode-provider-switch (`olpx`)
|
||||
|
||||
English README: `README_EN.md`
|
||||
|
||||
`olpx` 是 OpenCode LocalProxy CLI,给 OpenCode 使用的本地代理。
|
||||
|
||||
它解决的问题很简单:
|
||||
|
||||
36
examples/opencode.jsonc
Normal file
36
examples/opencode.jsonc
Normal file
@ -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"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user