import { GigaChat as GigaChatLang} from 'langchain-gigachat'; import { GigaChat } from 'gigachat'; import { Agent } from 'node:https'; const httpsAgent = new Agent({ rejectUnauthorized: false, }); export const llm_mod = (GIGA_AUTH) => new GigaChatLang({ credentials: GIGA_AUTH, temperature: 0.2, model: 'GigaChat-2-Max', httpsAgent, }); export const llm_gen = (GIGA_AUTH) => new GigaChat({ credentials: GIGA_AUTH, model: 'GigaChat-2', httpsAgent, });