mirror of
https://github.com/HugeFrog24/go-telegram-bot.git
synced 2026-04-30 23:32:19 +00:00
OK
This commit is contained in:
+1
-1
@@ -90,7 +90,7 @@ func (b *Bot) getAnthropicResponse(ctx context.Context, messages []anthropic.Mes
|
|||||||
for i, msg := range messages {
|
for i, msg := range messages {
|
||||||
for _, content := range msg.Content {
|
for _, content := range msg.Content {
|
||||||
if content.Type == anthropic.MessagesContentTypeText {
|
if content.Type == anthropic.MessagesContentTypeText {
|
||||||
InfoLogger.Printf("Message %d: Role=%v, Text=%v", i, msg.Role, content.Text)
|
InfoLogger.Printf("Message %d: Role=%v, Text=%v", i, msg.Role, *content.Text)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user