discourse-ai/spec/lib/completions
Sam 8b81ff45b8
FIX: switch off native tools on Anthropic Claude Opus (#659)
Native tools do not work well on Opus.

Chain of Thought prompting means it consumes enormous amounts of
tokens and has poor latency.

This commit introduce and XML stripper to remove various chain of
thought XML islands from anthropic prompts when tools are involved.

This mean Opus native tools is now functions (albeit slowly)

From local testing XML just works better now.

Also fixes enum support in Anthropic native tools
2024-06-07 10:52:01 -03:00
..
dialects FIX: switch off native tools on Anthropic Claude Opus (#659) 2024-06-07 10:52:01 -03:00
endpoints FIX: switch off native tools on Anthropic Claude Opus (#659) 2024-06-07 10:52:01 -03:00
function_call_normalizer_spec.rb FIX: more robust function call support (#581) 2024-04-19 06:54:54 +10:00
llm_spec.rb FEATURE: Set endpoint credentials directly from LlmModel. (#625) 2024-05-16 09:50:22 -03:00
prompt_messages_builder_spec.rb FEATURE: support Chat with AI Persona via a DM (#488) 2024-05-06 09:49:02 +10:00
prompt_spec.rb FEATURE: Add vision support to AI personas (Claude 3) (#546) 2024-03-27 14:30:11 +11:00
xml_tag_stripper_spec.rb FIX: switch off native tools on Anthropic Claude Opus (#659) 2024-06-07 10:52:01 -03:00