Telegram: add inline button model selection for /models and /model commands

This commit is contained in:
Ermenegildo Fiorito
2026-02-03 19:03:00 +01:00
committed by Ayaan Zaidi
parent efb4a34be4
commit 16349b6e93
8 changed files with 757 additions and 86 deletions

View File

@@ -85,6 +85,7 @@ export async function handleDirectiveOnly(params: {
currentVerboseLevel?: VerboseLevel;
currentReasoningLevel?: ReasoningLevel;
currentElevatedLevel?: ElevatedLevel;
surface?: string;
}): Promise<ReplyPayload | undefined> {
const {
directives,
@@ -132,6 +133,7 @@ export async function handleDirectiveOnly(params: {
aliasIndex,
allowedModelCatalog,
resetModelOverride,
surface: params.surface,
});
if (modelInfo) {
return modelInfo;