discourse-ai/spec/lib/modules/ai_bot/tools
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
..
dall_e_spec.rb DEV: Remove old code now that features rely on LlmModels. (#729) 2024-07-30 13:44:57 -03:00
db_schema_spec.rb DEV: Remove old code now that features rely on LlmModels. (#729) 2024-07-30 13:44:57 -03:00
discourse_meta_search_spec.rb DEV: Remove old code now that features rely on LlmModels. (#729) 2024-07-30 13:44:57 -03:00
github_file_content_spec.rb DEV: Remove old code now that features rely on LlmModels. (#729) 2024-07-30 13:44:57 -03:00
github_pull_request_diff_spec.rb DEV: Remove old code now that features rely on LlmModels. (#729) 2024-07-30 13:44:57 -03:00
github_search_code_spec.rb DEV: Remove old code now that features rely on LlmModels. (#729) 2024-07-30 13:44:57 -03:00
github_search_files_spec.rb DEV: Remove old code now that features rely on LlmModels. (#729) 2024-07-30 13:44:57 -03:00
google_spec.rb FEATURE: allow scoping of google tool queries (#852) 2024-10-23 16:55:10 +11:00
image_spec.rb DEV: Remove old code now that features rely on LlmModels. (#729) 2024-07-30 13:44:57 -03:00
javascript_evaluator_spec.rb DEV: Remove old code now that features rely on LlmModels. (#729) 2024-07-30 13:44:57 -03:00
list_categories_spec.rb DEV: Remove old code now that features rely on LlmModels. (#729) 2024-07-30 13:44:57 -03:00
list_tags_spec.rb DEV: Remove old code now that features rely on LlmModels. (#729) 2024-07-30 13:44:57 -03:00
random_picker_spec.rb REFACTOR: Simplify tool invocation by removing bot_user and llm parameters (#603) 2024-05-07 21:55:46 +10:00
read_spec.rb DEV: Remove old code now that features rely on LlmModels. (#729) 2024-07-30 13:44:57 -03:00
search_settings_spec.rb FEATURE: improve site setting search (#780) 2024-08-29 16:05:38 +10:00
search_spec.rb FIX: Llm selector / forced tools / search tool (#862) 2024-10-25 06:24:53 +11:00
setting_context_spec.rb FIX: support case insensitive setting lookup (#795) 2024-09-10 15:21:03 +10:00
summarize_spec.rb DEV: Remove old code now that features rely on LlmModels. (#729) 2024-07-30 13:44:57 -03:00
time_spec.rb DEV: Remove old code now that features rely on LlmModels. (#729) 2024-07-30 13:44:57 -03:00
tool_spec.rb FIX: never provide tools with invalid UTF-8 strings (#692) 2024-06-27 14:06:52 +10:00
web_browser_spec.rb DEV: Remove old code now that features rely on LlmModels. (#729) 2024-07-30 13:44:57 -03:00