@bman654/clodex 2.14.1 → 2.16.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +15 -2
- package/dist/{chunk-3NCDMS7N.js → chunk-5TG736TX.js} +14 -1
- package/dist/{chunk-3NCDMS7N.js.map → chunk-5TG736TX.js.map} +1 -1
- package/dist/claude-wrapper.js +1 -1
- package/dist/cli.js +900 -537
- package/dist/cli.js.map +1 -1
- package/docs/opencode-go.md +3 -2
- package/package.json +1 -1
package/docs/opencode-go.md
CHANGED
|
@@ -12,10 +12,11 @@ clodex providers add
|
|
|
12
12
|
|
|
13
13
|
Choose **OpenCode Go API key**, paste an API key from OpenCode, then use `clodex models` to add the desired models to favorites. The pasted key is checked against the authenticated chat-completions endpoint before it is saved — `/models` alone cannot validate a credential (see below). The pre-save probe rejects only definite, recognized authentication failures; timeout, network, and unrecognized responses are inconclusive, so a bad key may still be saved and surface an authentication failure on first inference. Favorites can be assigned short aliases and patched into Claude Code in the same way as OpenAI models.
|
|
14
14
|
|
|
15
|
-
The provider uses one credential with
|
|
15
|
+
The provider uses one credential with three upstream wire protocols:
|
|
16
16
|
|
|
17
17
|
- Anthropic Messages models are passed through to `https://opencode.ai/zen/go/v1/messages`.
|
|
18
18
|
- OpenAI Chat Completions models are translated through the OpenAI-compatible SDK at `https://opencode.ai/zen/go/v1/chat/completions`.
|
|
19
|
+
- OpenAI Responses models are translated through the OpenAI SDK at `https://opencode.ai/zen/go/v1/responses`. Go serves some models on this endpoint only — the Muse Spark contributor models answer there and return 500 on the other two.
|
|
19
20
|
|
|
20
21
|
The selective proxy diverts only explicit `clodex:opencode-go:...` model ids or saved aliases. Ordinary Claude model traffic remains on Claude Code's native Anthropic connection.
|
|
21
22
|
|
|
@@ -23,7 +24,7 @@ Both endpoints require an `x-opencode-session` header and answer `MissingSession
|
|
|
23
24
|
|
|
24
25
|
## Supported transport scope
|
|
25
26
|
|
|
26
|
-
|
|
27
|
+
A model reaches the catalog only once its transport has been verified against the live endpoint; any id the updater cannot map is reported and left out. Grok and mainline GPT are still absent on that basis. Responses-API models are no longer excluded as a class — a catalog entry says so by carrying the `@ai-sdk/openai` package, which is what routes it to `/v1/responses`. The provider record itself still names `@ai-sdk/openai-compatible`, and model discovery and refresh continue to refuse any other package for it.
|
|
27
28
|
|
|
28
29
|
Live `/models` results are treated as availability data. Clodex layers its committed catalog over those results to supply the correct protocol, endpoint, context window, modalities, pricing, and compatibility behavior per model. Models absent from the committed allowlist are hidden even when the live endpoint advertises them.
|
|
29
30
|
|