discourse-ai/spec/lib/utils
Sam ab5edae121
FIX: make AI helper more robust (#1484)
* FIX: make AI helper more robust

- If JSON is broken for structured output then lean on a more forgiving parser
- Gemini 2.5 flash does not support temp, support opting out
- Evals for assistant were broken, fix interface
- Add some missing LLMs
- Translator was not mapped correctly to the feature - fix that
- Don't mix XML in prompt for translator

* lint

* correct logic

* simplify code

* implement best effort json parsing direct in the structured output object
2025-07-04 14:47:11 +10:00
..
diff_utils DEV: Improve diff streaming accuracy with safety checker (#1338) 2025-05-15 11:38:46 -07:00
research FEATURE: allow access to assigns from forum researcher (#1412) 2025-06-06 16:59:00 +10:00
ai_staff_action_logger_spec.rb DEV: Log AI related configuration to staff action log (#1416) 2025-06-12 12:39:58 -07:00
best_effort_json_parser_spec.rb FIX: make AI helper more robust (#1484) 2025-07-04 14:47:11 +10:00
dns_srv_spec.rb FEATURE: Add basic connection check to DNS SRV resources (#563) 2024-04-12 10:39:19 -03:00
pdf_to_text_spec.rb DEV: Skip PDF tests (#1129) 2025-02-18 10:17:11 +10:00
search_spec.rb FEATURE: Use personas for generating hypothetical posts (#1482) 2025-07-02 10:56:38 -03:00