fix: include configured provider rows in all models list · openclaw/openclaw@19f9b69
shakkernerd
·
2026-04-24
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -474,7 +474,9 @@ describe("models list/status", () => {
|
474 | 474 | models: { |
475 | 475 | providers: { |
476 | 476 | "custom-proxy": { |
| 477 | +api: "openai-responses", |
477 | 478 | baseUrl: "https://custom.example/v1", |
| 479 | +apiKey: "$CUSTOM_PROXY_API_KEY", |
478 | 480 | models: [ |
479 | 481 | { |
480 | 482 | id: "custom-model", |
@@ -491,6 +493,7 @@ describe("models list/status", () => {
|
491 | 493 | models: { |
492 | 494 | providers: { |
493 | 495 | "custom-proxy": { |
| 496 | +api: "openai-responses", |
494 | 497 | baseUrl: "https://custom.example/v1", |
495 | 498 | apiKey: "sk-resolved-runtime-value", // pragma: allowlist secret |
496 | 499 | models: [ |
@@ -512,7 +515,7 @@ describe("models list/status", () => {
|
512 | 515 | getRuntimeConfig.mockReturnValue(resolvedConfig); |
513 | 516 | const runtime = makeRuntime(); |
514 | 517 | |
515 | | -await modelsListCommand({ all: true, provider: "custom-proxy", json: true }, runtime); |
| 518 | +await modelsListCommand({ all: true, json: true }, runtime); |
516 | 519 | |
517 | 520 | expect(ensureOpenClawModelsJson).not.toHaveBeenCalled(); |
518 | 521 | const payload = parseJsonLog(runtime); |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。