fix getting giga token

This commit is contained in:
Дмитриев Максим Сергеевич
2025-06-14 18:26:13 +03:00
parent 45cafbee91
commit f37f34d803
4 changed files with 20 additions and 13 deletions

View File

@@ -10,6 +10,7 @@ import { CreateTicketTool } from './create-ticket-tool';
export interface SupportAgentConfig {
temperature?: number;
threadId?: string;
GIGA_AUTH?: string;
}
export interface SupportResponse {
@@ -34,7 +35,7 @@ export class SupportAgent {
this.memorySaver = new MemorySaver();
this.isFirstMessage = true;
this.llm = gigachat;
this.llm = gigachat(config.GIGA_AUTH);
if (config.temperature !== undefined) {
this.llm.temperature = config.temperature;
}