diff --git a/clients/aiClient.go b/clients/aiClient.go index 3cc3a75..c0a9e67 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) @@ -54,6 +57,7 @@ func (client *AIClient) SendAnswerer(final bool, tipe, message, session string) if len(errs) > 0 { return "", errors.Join(errs...) } + fmt.Println("AI ERROR", string(respBody)) if statusCode != fiber.StatusCreated { return "", fmt.Errorf("invalid response status code: %d", statusCode)