9 Commits

Author SHA1 Message Date
0d70ec46de Fix role setting for assistant-sent images in Anthropic API
Anthropic API does not support assistants sending images directly, so the role is adjusted to "user" for such messages. This ensures compatibility and prevents errors when processing image messages.
2025-01-09 01:18:11 -05:00
6e2b5a33c0 fix anthropic 2024-12-29 19:45:28 -05:00
46a526fd5a Merge branch 'main' of ssh://nuc.dudenhoeffer.casa:222/steve/go-llm 2024-12-28 19:49:26 -05:00
0b06fd965e updated anthropic 2024-12-26 22:51:16 -05:00
0993a8e865 Fix unmarshalling issues and adjust logging for debugging
Modify `FunctionCall` struct to handle arguments as strings. Add debugging logs to facilitate error tracing and improve JSON unmarshalling in various functions.
2024-11-11 00:23:01 -05:00
cd4ad59a38 sync of changes 2024-11-09 19:50:14 -05:00
b8dc1d1a96 changed the way images are passed 2024-10-07 16:33:57 -04:00
8e1001b5b7 enforce anthropic's required alternating user/assistant roles 2024-10-07 14:38:23 -04:00
f4214f656b push of current changes 2024-10-06 21:02:26 -04:00