Files
tg-chat-bot/src/commands/mistral-get-model.ts
T

16 lines
665 B
TypeScript

import {Command} from "../base/command";
import {Message} from "typescript-telegram-bot-api";
import {logError, replyToMessage} from "../util/utils";
import {AiProvider} from "../model/ai-provider";
import {formatRuntimeModelInfo} from "../ai/provider-model-runtime";
import {Environment} from "../common/environment";
export class MistralGetModel extends Command {
title = Environment.commandTitles.mistralGetModel;
description = Environment.commandDescriptions.mistralGetModel;
async execute(msg: Message): Promise<void> {
await replyToMessage({message: msg, text: await formatRuntimeModelInfo(AiProvider.MISTRAL)}).catch(logError);
}
}