Files
multy-stub/server/routers/kfu-m-24-1/sber_mobile/initiatives-ai-agents/llm.ts
2025-06-15 16:13:57 +03:00

22 lines
523 B
TypeScript

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,
});