From aa43608dd22753f0cce8dbfb3505437670e9025c Mon Sep 17 00:00:00 2001 From: Seedy Date: Sun, 22 Mar 2026 18:35:20 +0000 Subject: [PATCH] Optimised the bot for newer Gemini models by getting rid of thought signatures and other stuff that was resulting in garbage output. --- main.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/main.go b/main.go index 5213ba5..45cfbbe 100644 --- a/main.go +++ b/main.go @@ -1410,8 +1410,9 @@ func getResponse(resp *genai.GenerateContentResponse) string { for _, cand := range resp.Candidates { if cand.Content != nil { for _, part := range cand.Content.Parts { - str := fmt.Sprintf("%v", part) - response += str + if part.Text != "" { + response += part.Text + } } } }