15 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
dfb768d966 make toolbox optional 2024-12-28 20:39:57 -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
37939088ed initial commit of untested function stuff 2024-11-08 20:53:12 -05:00
f603010dee support o1 models not allowing system prompts 2024-10-31 11:21:03 -04:00
c4f4f6abe6 if an openai message has content and multicontent, fix it before passing it off to the api 2024-10-20 21:50:12 -04: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
09447b0424 add google gemini support 2024-10-06 22:16:26 -04:00
f4214f656b push of current changes 2024-10-06 21:02:26 -04:00
a67ad54bcc initial commit 2024-10-06 20:01:01 -04:00