Project Files
src / strategies / ModelStrategy.ts
import { Chat, GeneratorController } from "@lmstudio/sdk";
export interface GenerationContext {
ctl: GeneratorController;
history: Chat;
model: string;
apiKey: string;
globalConfig: any;
pluginConfig: any;
debugChunks: boolean;
logRequests: boolean;
// If true, suppress automatic vision promotion for this turn
suppressVisionPromotionForThisTurn?: boolean;
}
export interface ModelStrategy {
generate(context: GenerationContext): Promise<void>;
}