mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-07 02:20:43 +00:00
fix: deprecate models add command (#71175)
This commit is contained in:
@@ -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" },
|
||||
|
||||
Reference in New Issue
Block a user