mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-13 04:48:15 +00:00
fix: deprecate models add command (#71175)
This commit is contained in:
parent
e35e6e1d15
commit
59e2825274
28 changed files with 192 additions and 1875 deletions
|
|
@ -3138,8 +3138,8 @@ describe("createTelegramBot", () => {
|
|||
}
|
||||
)?.reply_markup?.inline_keyboard?.[0]?.[0],
|
||||
).toEqual({
|
||||
text: "Add model",
|
||||
callback_data: "/models add",
|
||||
text: "openai (1)",
|
||||
callback_data: "mdl_list_openai_1",
|
||||
});
|
||||
});
|
||||
|
||||
|
|
@ -3527,8 +3527,8 @@ describe("createTelegramBot", () => {
|
|||
}
|
||||
)?.reply_markup?.inline_keyboard?.[0]?.[0],
|
||||
).toEqual({
|
||||
text: "Add model",
|
||||
callback_data: "/models add",
|
||||
text: "openai (1)",
|
||||
callback_data: "mdl_list_openai_1",
|
||||
});
|
||||
});
|
||||
|
||||
|
|
|
|||
|
|
@ -10,10 +10,7 @@ import {
|
|||
export { buildCommandsPaginationKeyboard };
|
||||
|
||||
export function buildTelegramModelsMenuButtons(params: { providers: ProviderInfo[] }) {
|
||||
return [
|
||||
[{ text: "Add model", callback_data: "/models add" }],
|
||||
...buildProviderKeyboard(params.providers),
|
||||
];
|
||||
return buildProviderKeyboard(params.providers);
|
||||
}
|
||||
|
||||
export function buildTelegramModelsMenuChannelData(params: {
|
||||
|
|
|
|||
|
|
@ -39,7 +39,6 @@ describe("createTelegramPluginBase config duplicate token guard", () => {
|
|||
expect(channelData).toEqual({
|
||||
telegram: {
|
||||
buttons: [
|
||||
[{ text: "Add model", callback_data: "/models add" }],
|
||||
[
|
||||
{ text: "anthropic (2)", callback_data: "mdl_list_anthropic_1" },
|
||||
{ text: "openai (3)", callback_data: "mdl_list_openai_1" },
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue