discourse-ai/lib/completions/endpoints
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
..
anthropic.rb FIX: Llm selector / forced tools / search tool (#862) 2024-10-25 06:24:53 +11:00
aws_bedrock.rb FIX: Llm selector / forced tools / search tool (#862) 2024-10-25 06:24:53 +11:00
base.rb FEATURE: better logging for automation reports (#853) 2024-10-23 16:49:56 +11:00
canned_response.rb FEATURE: better logging for automation reports (#853) 2024-10-23 16:49:56 +11:00
cohere.rb DEV: Remove old code now that features rely on LlmModels. (#729) 2024-07-30 13:44:57 -03:00
fake.rb FEATURE: better logging for automation reports (#853) 2024-10-23 16:49:56 +11:00
gemini.rb FIX: Llm selector / forced tools / search tool (#862) 2024-10-25 06:24:53 +11:00
hugging_face.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
open_ai.rb FEATURE: Support srv records for OpenAI compatible LLMs (#865) 2024-10-24 15:47:12 -03:00
samba_nova.rb FEATURE: add a SambaNova LLM provider (#797) 2024-09-12 11:28:08 +10:00
vllm.rb FIX: Add tool support to open ai compatible dialect and vllm (#734) 2024-08-02 09:52:33 -03:00