discourse-ai/lib/completions
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
..
dialects FIX: Llm selector / forced tools / search tool (#862) 2024-10-25 06:24:53 +11:00
endpoints FIX: Llm selector / forced tools / search tool (#862) 2024-10-25 06:24:53 +11:00
anthropic_message_processor.rb FEATURE: anthropic function calling (#654) 2024-06-06 08:34:23 +10:00
function_call_normalizer.rb FIX: more robust function call support (#581) 2024-04-19 06:54:54 +10:00
llm.rb FEATURE: better logging for automation reports (#853) 2024-10-23 16:49:56 +11:00
prompt.rb FEATURE: allows forced LLM tool use (#818) 2024-10-05 09:46:57 +10:00
prompt_messages_builder.rb FEATURE: Add support for contextualizing a DM to a bot (#627) 2024-05-21 17:17:02 +10:00
upload_encoder.rb FEATURE: Add vision support to AI personas (Claude 3) (#546) 2024-03-27 14:30:11 +11:00
xml_tag_stripper.rb FIX: display search correctly, bug when stripping XML (#668) 2024-06-14 15:28:40 +10:00