fix: deprecate models add command (#71175)

This commit is contained in:
Tak Hoffman
2026-04-24 12:20:59 -05:00
committed by GitHub
parent e35e6e1d15
commit 59e2825274
28 changed files with 192 additions and 1875 deletions

View File

@@ -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",
});
});

View File

@@ -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: {

View File

@@ -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" },