mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-05 09:10:20 +00:00
* fix: display model name instead of ID in Telegram model selector (#56165) * fix(telegram): scope model display names by provider Signed-off-by: sallyom <somalley@redhat.com> --------- Signed-off-by: sallyom <somalley@redhat.com> Co-authored-by: sallyom <somalley@redhat.com>
This commit is contained in:
@@ -23,6 +23,7 @@ const data = {
|
||||
provider: "anthropic",
|
||||
model: "claude-opus-4-5",
|
||||
},
|
||||
modelNames: new Map<string, string>(),
|
||||
};
|
||||
|
||||
describe("Mattermost model picker", () => {
|
||||
@@ -154,6 +155,7 @@ describe("Mattermost model picker", () => {
|
||||
provider: "openai",
|
||||
model: "gpt-5",
|
||||
},
|
||||
modelNames: new Map<string, string>(),
|
||||
};
|
||||
|
||||
expect(
|
||||
|
||||
@@ -16,7 +16,7 @@ const mockState = vi.hoisted(() => ({
|
||||
team_id: "team-1",
|
||||
})),
|
||||
resolveCommandText: vi.fn((_trigger: string, text: string) => text),
|
||||
buildModelsProviderData: vi.fn(async () => ({ providers: [] })),
|
||||
buildModelsProviderData: vi.fn(async () => ({ providers: [], modelNames: new Map() })),
|
||||
resolveMattermostModelPickerEntry: vi.fn(() => ({ kind: "summary" })),
|
||||
authorizeMattermostCommandInvocation: vi.fn(() => ({
|
||||
ok: true,
|
||||
|
||||
Reference in New Issue
Block a user