update streaming for Gemini and Mistral and update list gemini models and list mistral models commands

This commit is contained in:
2026-01-28 12:29:52 +03:00
parent 854981cf6e
commit 458e56dcb4
5 changed files with 76 additions and 75 deletions
+4 -5
View File
@@ -18,16 +18,15 @@ export class MistralListModels extends ChatCommand {
const modelsString = listResponse.data
.sort((a, b) => a.name.localeCompare(b.name))
.map(e => `\`${e.name}\``)
.map(e => `${e.id}`)
.join("\n");
const text = "Доступные модели:\n\n" + modelsString;
const text = "Доступные модели:\n\n" + "<blockquote expandable>" + modelsString + "</blockquote>";
await replyToMessage({
chat_id: msg.chat.id,
message: msg,
text: text,
parse_mode: "Markdown",
message: msg
parse_mode: "HTML"
});
} catch (e) {
console.error(e);