mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-02 00:20:20 +00:00
test+ui: fix persistent main CI regressions (#63825)
This commit is contained in:
@@ -1141,7 +1141,7 @@ describe("createFollowupRunner messaging tool dedupe", () => {
|
||||
agents: {
|
||||
defaults: {
|
||||
cliBackends: {
|
||||
anthropic: {},
|
||||
anthropic: { command: "anthropic" },
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
@@ -276,13 +276,6 @@ export function buildChatModelOptionFromLookup(
|
||||
displayLookup: ChatModelDisplayLookup,
|
||||
): { value: string; label: string } {
|
||||
const provider = entry.provider?.trim();
|
||||
const value = (() => {
|
||||
if (!provider) {
|
||||
return entry.id;
|
||||
}
|
||||
const providerPrefix = `${provider.toLowerCase()}/`;
|
||||
return entry.id.toLowerCase().startsWith(providerPrefix) ? entry.id : `${provider}/${entry.id}`;
|
||||
})();
|
||||
return {
|
||||
value: buildQualifiedChatModelValue(entry.id, provider),
|
||||
label: formatCatalogEntryDisplay(entry, displayLookup),
|
||||
|
||||
Reference in New Issue
Block a user