@zhiman_innies/innies-codex 0.122.63 → 0.122.65
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/bin/innies-config.js +37 -14
- package/package.json +5 -5
package/bin/innies-config.js
CHANGED
|
@@ -39,15 +39,31 @@ const ZHIMAN_27B_PROVIDER_HEADER = "[model_providers.zhiman_27b]";
|
|
|
39
39
|
// source for the rename-and-rewrite logic in `normalizeInniesConfig`.
|
|
40
40
|
const DASHSCOPE_PROVIDER_HEADER = "[model_providers.dashscope]";
|
|
41
41
|
const BAILIAN_PROVIDER_HEADER = "[model_providers.bailian]";
|
|
42
|
-
//
|
|
43
|
-
//
|
|
44
|
-
// (
|
|
45
|
-
//
|
|
46
|
-
//
|
|
47
|
-
//
|
|
48
|
-
//
|
|
49
|
-
//
|
|
50
|
-
|
|
42
|
+
// Per-provider default `wire_api` (E1 2026-06-15). The two factories
|
|
43
|
+
// diverge on purpose:
|
|
44
|
+
// - private vLLM (`zhiman`, `zhiman_27b`, `zhiman_35b`): vLLM ≥ 0.7
|
|
45
|
+
// natively serves `/v1/responses`, so the default is `responses`.
|
|
46
|
+
// - DashScope public cloud (`bailian`, legacy `dashscope`): the
|
|
47
|
+
// qwen3.6-27b model ONLY exposes `/v1/chat/completions` on
|
|
48
|
+
// DashScope — verified by curl probe
|
|
49
|
+
// (qwen3.6-27b@/v1/chat/completions http=200,
|
|
50
|
+
// qwen3.6-27b@/v1/responses http=400 "Unsupported model").
|
|
51
|
+
// The default for these blocks is therefore `chat_completions`.
|
|
52
|
+
//
|
|
53
|
+
// R12 (commit 668ddc379) flat-set both factories and the JS default
|
|
54
|
+
// to `"responses"` based on the now-disproven assumption that both
|
|
55
|
+
// endpoints work on both backends. E1 reverses that for bailian only,
|
|
56
|
+
// keeping zhiman unchanged.
|
|
57
|
+
function defaultWireApiForHeader(providerHeader) {
|
|
58
|
+
if (
|
|
59
|
+
providerHeader === BAILIAN_PROVIDER_HEADER ||
|
|
60
|
+
providerHeader === DASHSCOPE_PROVIDER_HEADER
|
|
61
|
+
) {
|
|
62
|
+
return "chat_completions";
|
|
63
|
+
}
|
|
64
|
+
// zhiman / zhiman_27b / zhiman_35b and any future zhiman* prefix.
|
|
65
|
+
return "responses";
|
|
66
|
+
}
|
|
51
67
|
const RESERVED_PROVIDER_HEADERS = Object.freeze([
|
|
52
68
|
"[model_providers.openai]",
|
|
53
69
|
"[model_providers.ollama]",
|
|
@@ -808,13 +824,20 @@ function normalizeProviderBlock(contents, provider) {
|
|
|
808
824
|
const updated = [];
|
|
809
825
|
let inProviderBlock = false;
|
|
810
826
|
let sawWireApi = false;
|
|
827
|
+
// E1 (2026-06-15): per-provider default — zhiman* stay `responses`
|
|
828
|
+
// (matches private vLLM /v1/responses), bailian / dashscope get
|
|
829
|
+
// `chat_completions` (matches DashScope public cloud where qwen3.6-27b
|
|
830
|
+
// is /v1/chat/completions-only). The pre-E1 hard-coded single default
|
|
831
|
+
// had the wrong value for whichever provider didn't match the
|
|
832
|
+
// assumption baked in by R12.
|
|
833
|
+
const providerDefaultWireApi = defaultWireApiForHeader(provider.providerHeader);
|
|
811
834
|
|
|
812
835
|
const finishProviderBlock = () => {
|
|
813
836
|
if (!inProviderBlock) {
|
|
814
837
|
return;
|
|
815
838
|
}
|
|
816
839
|
if (!sawWireApi) {
|
|
817
|
-
updated.push(`wire_api = "${
|
|
840
|
+
updated.push(`wire_api = "${providerDefaultWireApi}"`);
|
|
818
841
|
}
|
|
819
842
|
};
|
|
820
843
|
|
|
@@ -831,7 +854,7 @@ function normalizeProviderBlock(contents, provider) {
|
|
|
831
854
|
|
|
832
855
|
if (inProviderBlock) {
|
|
833
856
|
if (/^\s*wire_api\s*=/.test(line)) {
|
|
834
|
-
updated.push(`wire_api = "${
|
|
857
|
+
updated.push(`wire_api = "${providerDefaultWireApi}"`);
|
|
835
858
|
sawWireApi = true;
|
|
836
859
|
continue;
|
|
837
860
|
}
|
|
@@ -883,7 +906,7 @@ function defaultZhiman35bProviderBlock() {
|
|
|
883
906
|
'name = "zhiman_35b"',
|
|
884
907
|
`# base_url = "http://your-private-deployment/v1" # FILL IN: your private vLLM / OpenAI-compatible endpoint — do NOT keep this placeholder`,
|
|
885
908
|
`# env_key = "ZHIMAN_API_KEY" # FILL IN: the env var NAME holding your API key (NOT the key itself) — see file header`,
|
|
886
|
-
`wire_api = "${
|
|
909
|
+
`wire_api = "${defaultWireApiForHeader(ZHIMAN_35B_PROVIDER_HEADER)}"`,
|
|
887
910
|
`# http_headers = { "X-Custom" = "value" } # optional: literal per-request headers`,
|
|
888
911
|
`# env_http_headers = { "X-Tenant" = "TENANT_ID_ENV" } # optional: headers from env-var indirection`,
|
|
889
912
|
`# query_params = { "api-version" = "2024-10" } # optional: extra URL query params`,
|
|
@@ -910,7 +933,7 @@ function defaultZhiman27bProviderBlock() {
|
|
|
910
933
|
'name = "zhiman_27b"',
|
|
911
934
|
`# base_url = "http://your-private-deployment/v1" # FILL IN: your private vLLM / OpenAI-compatible endpoint — do NOT keep this placeholder`,
|
|
912
935
|
`# env_key = "ZHIMAN_API_KEY" # FILL IN: the env var NAME holding your API key (NOT the key itself) — see file header`,
|
|
913
|
-
`wire_api = "${
|
|
936
|
+
`wire_api = "${defaultWireApiForHeader(ZHIMAN_27B_PROVIDER_HEADER)}"`,
|
|
914
937
|
`# http_headers = { "X-Custom" = "value" } # optional: literal per-request headers`,
|
|
915
938
|
`# env_http_headers = { "X-Tenant" = "TENANT_ID_ENV" } # optional: headers from env-var indirection`,
|
|
916
939
|
`# query_params = { "api-version" = "2024-10" } # optional: extra URL query params`,
|
|
@@ -954,7 +977,7 @@ function defaultDashscopeProviderBlock() {
|
|
|
954
977
|
'name = "bailian"',
|
|
955
978
|
`# base_url = "https://dashscope.aliyuncs.com/compatible-mode/v1" # FILL IN: DashScope OpenAI-compatible endpoint — keep this default if you use the public cloud`,
|
|
956
979
|
`# env_key = "DASHSCOPE_API_KEY" # FILL IN: the env var NAME holding your DashScope API key (NOT the key itself) — see file header`,
|
|
957
|
-
`wire_api = "${
|
|
980
|
+
`wire_api = "${defaultWireApiForHeader(BAILIAN_PROVIDER_HEADER)}"`,
|
|
958
981
|
`# http_headers = { "X-Custom" = "value" } # optional: literal per-request headers`,
|
|
959
982
|
`# env_http_headers = { "X-Tenant" = "TENANT_ID_ENV" } # optional: headers from env-var indirection`,
|
|
960
983
|
`# query_params = { "api-version" = "2024-10" } # optional: extra URL query params`,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zhiman_innies/innies-codex",
|
|
3
|
-
"version": "0.122.
|
|
3
|
+
"version": "0.122.65",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"bin": {
|
|
6
6
|
"innies": "bin/innies.js"
|
|
@@ -23,9 +23,9 @@
|
|
|
23
23
|
"postinstall": "node bin/innies-init.js"
|
|
24
24
|
},
|
|
25
25
|
"optionalDependencies": {
|
|
26
|
-
"@zhiman_innies/innies-codex-darwin-x64": "0.122.
|
|
27
|
-
"@zhiman_innies/innies-codex-darwin-arm64": "0.122.
|
|
28
|
-
"@zhiman_innies/innies-codex-win32-x64": "0.122.
|
|
29
|
-
"@zhiman_innies/innies-codex-win32-arm64": "0.122.
|
|
26
|
+
"@zhiman_innies/innies-codex-darwin-x64": "0.122.65-darwin-x64",
|
|
27
|
+
"@zhiman_innies/innies-codex-darwin-arm64": "0.122.65-darwin-arm64",
|
|
28
|
+
"@zhiman_innies/innies-codex-win32-x64": "0.122.65-win32-x64",
|
|
29
|
+
"@zhiman_innies/innies-codex-win32-arm64": "0.122.65-win32-arm64"
|
|
30
30
|
}
|
|
31
31
|
}
|