discourse-ai/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.rb DEV: Log AI related configuration to staff action log (#1416) 2025-06-12 12:39:58 -07:00
best_effort_json_parser.rb FIX: make AI helper more robust (#1484) 2025-07-04 14:47:11 +10:00
dns_srv.rb FEATURE: allow artifacts to be updated (#980) 2024-12-03 07:23:31 +11:00
image_to_text.rb FIX: Correct prompt format for img2text used in our AI Bot PDF Rag pipeline (#1323) 2025-05-07 16:48:56 -03:00
pdf_to_images.rb FEATURE: Native PDF support (#1127) 2025-02-18 09:22:57 +11:00
pdf_to_text.rb FEATURE: Native PDF support (#1127) 2025-02-18 09:22:57 +11:00
search.rb FIX: Invalid access error in logs (#1317) 2025-05-06 10:13:03 -07:00