import AIModelAPI, { type LLMChoice } from "sortug-ai"; import type { AsyncRes } from "@/lib/types"; export class LLM { private api; constructor(model: LLMChoice) { const api = AIModelAPI(model); this.api = api; } async chat(text: string): AsyncRes { const res = await this.api.send(text); console.log({ res }); return res; } }