mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-18 20:24:46 +00:00
test: expand inline provider model rows
This commit is contained in:
@@ -38,11 +38,12 @@ describe("buildInlineProviderModels", () => {
|
||||
const result = buildInlineProviderModels(providers);
|
||||
|
||||
expect(result).toEqual([
|
||||
expect.objectContaining({
|
||||
id: "custom-model",
|
||||
{
|
||||
...makeModel("custom-model"),
|
||||
provider: "custom",
|
||||
baseUrl: "http://localhost:8000",
|
||||
}),
|
||||
api: undefined,
|
||||
},
|
||||
]);
|
||||
});
|
||||
|
||||
@@ -58,11 +59,12 @@ describe("buildInlineProviderModels", () => {
|
||||
const result = buildInlineProviderModels(providers);
|
||||
|
||||
expect(result).toEqual([
|
||||
expect.objectContaining({
|
||||
id: "custom-model",
|
||||
{
|
||||
...makeModel("custom-model"),
|
||||
provider: "custom",
|
||||
baseUrl: "http://localhost:8000",
|
||||
api: "anthropic-messages",
|
||||
}),
|
||||
},
|
||||
]);
|
||||
});
|
||||
|
||||
@@ -78,11 +80,12 @@ describe("buildInlineProviderModels", () => {
|
||||
const result = buildInlineProviderModels(providers);
|
||||
|
||||
expect(result).toEqual([
|
||||
expect.objectContaining({
|
||||
id: "custom-model",
|
||||
{
|
||||
...makeModel("custom-model"),
|
||||
provider: "custom",
|
||||
baseUrl: "http://localhost:8000",
|
||||
api: "anthropic-messages",
|
||||
}),
|
||||
},
|
||||
]);
|
||||
});
|
||||
|
||||
@@ -134,11 +137,13 @@ describe("buildInlineProviderModels", () => {
|
||||
const result = buildInlineProviderModels(providers);
|
||||
|
||||
expect(result).toEqual([
|
||||
expect.objectContaining({
|
||||
id: "claude-sonnet-4-6",
|
||||
{
|
||||
...makeModel("claude-sonnet-4-6"),
|
||||
provider: "proxy",
|
||||
baseUrl: "https://proxy.example.com",
|
||||
api: "anthropic-messages",
|
||||
headers: { "User-Agent": "custom-agent/1.0" },
|
||||
}),
|
||||
},
|
||||
]);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user