discourse-ai/lib/completions/dialects
Sam 4923837165
FIX: Llm selector / forced tools / search tool (#862)
* FIX: Llm selector / forced tools / search tool


This fixes a few issues:

1. When search was not finding any semantic results we would break the tool
2. Gemin / Anthropic models did not implement forced tools previously despite it being an API option
3. Mechanics around displaying llm selector were not right. If you disabled LLM selector server side persona PM did not work correctly.
4. Disabling native tools for anthropic model moved out of a site setting. This deliberately does not migrate cause this feature is really rare to need now, people who had it set probably did not need it.
5. Updates anthropic model names to latest release

* linting

* fix a couple of tests I missed

* clean up conditional
2024-10-25 06:24:53 +11:00
..
chat_gpt.rb FEATURE: basic support for GPT-o models (#804) 2024-09-17 09:41:00 +10:00
claude.rb FIX: Llm selector / forced tools / search tool (#862) 2024-10-25 06:24:53 +11:00
claude_tools.rb FIX: switch off native tools on Anthropic Claude Opus (#659) 2024-06-07 10:52:01 -03:00
cohere_tools.rb FEATURE: Add native Cohere tool support (#655) 2024-06-04 08:59:15 +10:00
command.rb DEV: Remove old code now that features rely on LlmModels. (#729) 2024-07-30 13:44:57 -03:00
dialect.rb FEATURE: allows forced LLM tool use (#818) 2024-10-05 09:46:57 +10:00
fake.rb FEATURE: Set endpoint credentials directly from LlmModel. (#625) 2024-05-16 09:50:22 -03:00
gemini.rb DEV: Remove old code now that features rely on LlmModels. (#729) 2024-07-30 13:44:57 -03:00
ollama.rb FEATURE: Tools for models from Ollama provider (#819) 2024-10-11 07:25:53 +11:00
ollama_tools.rb FEATURE: Tools for models from Ollama provider (#819) 2024-10-11 07:25:53 +11:00
open_ai_compatible.rb FEATURE: add a SambaNova LLM provider (#797) 2024-09-12 11:28:08 +10:00
open_ai_tools.rb FIX: Make sure custom tool enums follow json-schema. (#718) 2024-07-16 14:23:17 -03:00
xml_tools.rb FIX: switch off native tools on Anthropic Claude Opus (#659) 2024-06-07 10:52:01 -03:00