mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-28 13:26:04 -06:00
test(image-generation): remove duplicate model map case (#129870)
Amp-Thread-ID: https://ampcode.com/threads/T-01a037b5-3918-749f-90bd-5c9ac1dced16 Co-authored-by: Amp <amp@ampcode.com>
This commit is contained in:
committed by
GitHub
parent
44907105c6
commit
0dabafe9f5
@@ -4,7 +4,6 @@ import type { OpenClawConfig } from "../config/config.js";
|
||||
import {
|
||||
parseCaseFilter,
|
||||
parseImageProviderFilter,
|
||||
parseProviderModelMap,
|
||||
redactLiveApiKey,
|
||||
resolveConfiguredLiveImageModels,
|
||||
resolveLiveImageAuthStore,
|
||||
@@ -25,17 +24,6 @@ describe("image-generation live-test helpers", () => {
|
||||
);
|
||||
});
|
||||
|
||||
it("parses provider model overrides by provider id", () => {
|
||||
expect(
|
||||
parseProviderModelMap("openai/gpt-image-2, google/gemini-3.1-flash-image-preview, invalid"),
|
||||
).toEqual(
|
||||
new Map([
|
||||
["openai", "openai/gpt-image-2"],
|
||||
["google", "google/gemini-3.1-flash-image-preview"],
|
||||
]),
|
||||
);
|
||||
});
|
||||
|
||||
it("collects configured models from primary and fallbacks", () => {
|
||||
const cfg = {
|
||||
agents: {
|
||||
|
||||
Reference in New Issue
Block a user