discourse-ai/spec/lib/completions/endpoints
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
..
anthropic_spec.rb FIX: switch off native tools on Anthropic Claude Opus (#659) 2024-06-07 10:52:01 -03:00
aws_bedrock_spec.rb FIX: switch off native tools on Anthropic Claude Opus (#659) 2024-06-07 10:52:01 -03:00
cohere_spec.rb FEATURE: Add native Cohere tool support (#655) 2024-06-04 08:59:15 +10:00
endpoint_compliance.rb FIX: more robust function call support (#581) 2024-04-19 06:54:54 +10:00
gemini_spec.rb FIX: correct gemini streaming implementation (#632) 2024-05-22 16:35:29 +10:00
hugging_face_spec.rb FEATURE: Configurable LLMs. (#606) 2024-05-13 12:46:42 -03:00
open_ai_spec.rb FEATURE: GPT4o support and better auditing (#618) 2024-05-14 13:28:46 +10:00
vllm_spec.rb REFACTOR: Migrate Vllm/TGI-served models to the OpenAI format. (#588) 2024-05-07 10:02:16 -03:00