@staticeng/opencode-litellm 0.3.0 → 0.3.2
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/LICENSE +0 -0
- package/README.md +6 -0
- package/dist/helpers.d.ts +0 -0
- package/dist/helpers.js +0 -0
- package/dist/index.d.ts +0 -0
- package/dist/index.js +0 -0
- package/dist/litellm.d.ts +0 -0
- package/dist/litellm.js +0 -0
- package/dist/mapping.d.ts +0 -0
- package/dist/mapping.js +0 -0
- package/dist/merge.d.ts +0 -0
- package/dist/merge.js +0 -0
- package/dist/model-contracts.d.ts +0 -0
- package/dist/model-contracts.js +10 -0
- package/dist/options.d.ts +0 -0
- package/dist/options.js +0 -0
- package/dist/types.d.ts +0 -0
- package/dist/types.js +0 -0
- package/dist/v2.d.ts +0 -0
- package/dist/v2.js +0 -0
- package/package.json +1 -1
package/LICENSE
CHANGED
|
File without changes
|
package/README.md
CHANGED
|
@@ -182,3 +182,9 @@ The GitHub release workflow supports npm trusted publishing from the `npm-produc
|
|
|
182
182
|
requires this GitHub repository to remain public. Before a release, configure npm's trusted
|
|
183
183
|
publisher for package `@staticeng/opencode-litellm` with this repository, workflow
|
|
184
184
|
`publish.yml`, and environment `npm-production`; no npm token is used by the workflow.
|
|
185
|
+
|
|
186
|
+
### Local RTX 5090 Strata aliases
|
|
187
|
+
|
|
188
|
+
The exact discovered aliases `5090-local-model` and `5090-local-model-codex` use the Qwen3.8 Flash Next Strata contract: text/image input, text output, reasoning, tools, and 262144 tokens of shared context. The output ceiling is 262144 within that shared window; it is not an additional output budget. Pricing continues to come from LiteLLM metadata.
|
|
189
|
+
|
|
190
|
+
Both aliases preserve their routable IDs and use Chat Completions in OpenCode. Their public variants are `off`, `low`, `medium`, and `xhigh` (default `xhigh`): `off` sends `reasoning_effort: "none"`; the other variants send their named effort. Strata accepts `high` and `max` as aliases of native `xhigh`; they are not distinct variants. This differs from the cloud Qwen contract and does not alter it. The `-codex` alias remains available to Codex via LiteLLM's separate Responses adapter. No alias is fabricated when discovery omits it; explicit model/provider overrides still win.
|
package/dist/helpers.d.ts
CHANGED
|
File without changes
|
package/dist/helpers.js
CHANGED
|
File without changes
|
package/dist/index.d.ts
CHANGED
|
File without changes
|
package/dist/index.js
CHANGED
|
File without changes
|
package/dist/litellm.d.ts
CHANGED
|
File without changes
|
package/dist/litellm.js
CHANGED
|
File without changes
|
package/dist/mapping.d.ts
CHANGED
|
File without changes
|
package/dist/mapping.js
CHANGED
|
File without changes
|
package/dist/merge.d.ts
CHANGED
|
File without changes
|
package/dist/merge.js
CHANGED
|
File without changes
|
|
File without changes
|
package/dist/model-contracts.js
CHANGED
|
@@ -54,6 +54,15 @@ const QWEN_FLASH_NEXT_METADATA = Object.freeze({
|
|
|
54
54
|
tool_call: true,
|
|
55
55
|
limit: Object.freeze({ context: 262144, output: 0 }),
|
|
56
56
|
});
|
|
57
|
+
// Expose native Qwen efforts; Strata also accepts high/max as xhigh aliases.
|
|
58
|
+
const STRATA_QWEN_MODES = Object.freeze([
|
|
59
|
+
Object.freeze({ id: "off", legacy: freezeJson({ reasoningEffort: "none" }), v2Body: freezeJson({ reasoning_effort: "none" }) }),
|
|
60
|
+
...effortModes(["low", "medium", "xhigh"]),
|
|
61
|
+
]);
|
|
62
|
+
const STRATA_QWEN_METADATA = Object.freeze({
|
|
63
|
+
...QWEN_FLASH_NEXT_METADATA,
|
|
64
|
+
limit: Object.freeze({ context: 262144, output: 262144 }),
|
|
65
|
+
});
|
|
57
66
|
const chatGptAliases = (model) => Object.freeze([
|
|
58
67
|
model,
|
|
59
68
|
`chatgpt/${model}`,
|
|
@@ -73,6 +82,7 @@ export const MODEL_CONTRACTS = Object.freeze([
|
|
|
73
82
|
contract("DeepSeek V4 Flash", ["deepseek-v4-flash-fp8-mtp", "deepseek-v4-flash-fp8-mtp-norefusal"], DEEPSEEK_MODES, "max"),
|
|
74
83
|
contract("Qwen3.8", ["qwen3.8-27b-refusal-dial"], QWEN_MODES, "xhigh"),
|
|
75
84
|
contract("Qwen3.8", ["qwen3.8-flash-next"], QWEN_MODES, "xhigh", QWEN_FLASH_NEXT_METADATA, true),
|
|
85
|
+
contract("Qwen3.8 Strata", ["5090-local-model", "5090-local-model-codex"], STRATA_QWEN_MODES, "xhigh", STRATA_QWEN_METADATA, true),
|
|
76
86
|
]);
|
|
77
87
|
export const RETIRED_MODEL_ALIASES = Object.freeze([
|
|
78
88
|
...chatGptAliases("gpt-5.3-codex"),
|
package/dist/options.d.ts
CHANGED
|
File without changes
|
package/dist/options.js
CHANGED
|
File without changes
|
package/dist/types.d.ts
CHANGED
|
File without changes
|
package/dist/types.js
CHANGED
|
File without changes
|
package/dist/v2.d.ts
CHANGED
|
File without changes
|
package/dist/v2.js
CHANGED
|
File without changes
|