UNPKG

hugbot

Version:

Chatbot maker for HuggingFace Inference API and other AI API providers and backends.

23 lines 803 B
import { PromptConstructor } from "../../HugBotEntity/HugBotEntity"; /** * Dedicated prompt formatter for Mistral models, because Mistrals have weird prompt format. * Produces this output: * @example * "<s>[INST] {system_prompt}\n Hello, how are you? [/INST] I'm doing great. How can I help you today?</s> [INST] I'd like to show off how chat templating works! [/INST]" */ export declare class MistralPromptConstructor implements PromptConstructor { #private; getPromptTemplate(memoryDump: MemoryDump): string; } type MemoryEntry = { role: "user" | "ai"; input: string; }; type MemoryDump = { conversation: MemoryEntry[]; systemPrompt: string; responseAffirmation: string; userInstruction: string; }; export {}; //# sourceMappingURL=MistralPromptConstructor.d.ts.map