discourse-ai/spec/lib/completions/dialects
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
..
chat_gpt_spec.rb FIX: Tune function calling (#519) 2024-03-09 08:46:40 +11:00
claude_spec.rb FIX: switch off native tools on Anthropic Claude Opus (#659) 2024-06-07 10:52:01 -03:00
dialect_context.rb FIX: Tune function calling (#519) 2024-03-09 08:46:40 +11:00
dialect_spec.rb FEATURE: Set endpoint credentials directly from LlmModel. (#625) 2024-05-16 09:50:22 -03:00
gemini_spec.rb FIX: correct gemini streaming implementation (#632) 2024-05-22 16:35:29 +10:00