codex-slot 0.1.4 → 0.1.5
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/dist/codex-config.js +3 -2
- package/package.json +1 -1
package/dist/codex-config.js
CHANGED
|
@@ -71,8 +71,10 @@ function buildManagedProviderBlock(eol, config) {
|
|
|
71
71
|
"[model_providers.cslot]",
|
|
72
72
|
'name = "cslot"',
|
|
73
73
|
`base_url = "http://${config.server.host}:${config.server.port}/v1"`,
|
|
74
|
-
`http_headers = { Authorization = "Bearer ${config.server.api_key}" }`,
|
|
75
74
|
'wire_api = "responses"',
|
|
75
|
+
"",
|
|
76
|
+
"[model_providers.cslot.http_headers]",
|
|
77
|
+
`Authorization = "Bearer ${config.server.api_key}"`,
|
|
76
78
|
PROVIDER_BLOCK_END_MARKER
|
|
77
79
|
].join(eol);
|
|
78
80
|
}
|
|
@@ -338,6 +340,5 @@ function deactivateManagedCodexConfig() {
|
|
|
338
340
|
const restored = restoreManagedContent(current, managedState);
|
|
339
341
|
writeFileAtomic(targetFile, restored);
|
|
340
342
|
(0, state_1.clearManagedCodexConfigState)();
|
|
341
|
-
console.log((0, text_1.bi)(`已恢复: ${targetFile}`, `Restored: ${targetFile}`));
|
|
342
343
|
return targetFile;
|
|
343
344
|
}
|