From f9d1ef5eaf863977bd7b694217315c0f71a3a795 Mon Sep 17 00:00:00 2001 From: skeris Date: Mon, 30 Jun 2025 14:40:51 +0300 Subject: [PATCH] fix: request new question now get session --- clients/aiClient.go | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/clients/aiClient.go b/clients/aiClient.go index 3cc3a75..f02e268 100644 --- a/clients/aiClient.go +++ b/clients/aiClient.go @@ -35,11 +35,14 @@ func (client *AIClient) SendAnswerer(final bool, tipe, message, session string) //} clownRequest := struct { - Title string `json:"title"` - Text string `json:"text"` + Tipe string `json:"type"` + Text string `json:"message"` Final bool `json:"is_final"` + Session string `json:"string"` }{ + Tipe: "text", Text: message, + Session: session, } body, err := json.Marshal(clownRequest) @@ -52,6 +55,7 @@ func (client *AIClient) SendAnswerer(final bool, tipe, message, session string) statusCode, respBody, errs := agent.Bytes() if len(errs) > 0 { + fmt.Println("AI ERROR", errors.Join(errs...)) return "", errors.Join(errs...) }