omp-config-crypt 0.9.13 → 0.9.14
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 +1 -1
- package/bin/omp-sync.js +0 -0
- package/package.json +1 -1
- package/src/provider-store.js +1 -2
package/README.md
CHANGED
package/bin/omp-sync.js
CHANGED
|
File without changes
|
package/package.json
CHANGED
package/src/provider-store.js
CHANGED
|
@@ -358,7 +358,6 @@ export function formatYamlModels(providers) {
|
|
|
358
358
|
out += ` models:\n`;
|
|
359
359
|
for (const m of cfg.models) {
|
|
360
360
|
out += ` - id: ${m.id}\n`;
|
|
361
|
-
if (m.api) out += ` api: ${m.api}\n`;
|
|
362
361
|
if (m.name) out += ` name: ${m.name}\n`;
|
|
363
362
|
if (m.reasoning !== undefined) out += ` reasoning: ${m.reasoning}\n`;
|
|
364
363
|
if (m.input) {
|
|
@@ -531,7 +530,7 @@ export function getProvider(name, { agentDir = getAgentDir() } = {}) {
|
|
|
531
530
|
}
|
|
532
531
|
|
|
533
532
|
const PROVIDER_FIELDS = new Set(["private", "baseUrl", "api", "apiKey", "authHeader", "models"]);
|
|
534
|
-
const MODEL_FIELDS = new Set(["id", "
|
|
533
|
+
const MODEL_FIELDS = new Set(["id", "name", "reasoning", "input", "contextWindow", "maxTokens", "compat"]);
|
|
535
534
|
function unsupported(field) {
|
|
536
535
|
throw new Error(`公开 YAML 格式不支持字段或结构 ${field};未写入`);
|
|
537
536
|
}
|