discourse-ai/lib/completions/endpoints
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
..
anthropic.rb FIX: implement max_output tokens (anthropic/openai/bedrock/gemini/open router) (#1447) 2025-06-19 16:00:11 +10:00
aws_bedrock.rb FIX: implement max_output tokens (anthropic/openai/bedrock/gemini/open router) (#1447) 2025-06-19 16:00:11 +10:00
base.rb FIX: make AI helper more robust (#1484) 2025-07-04 14:47:11 +10:00
canned_response.rb FEATURE: Use different personas to power AI helper features. 2025-06-04 14:23:00 -03:00
cohere.rb FEATURE: improve tool support (#904) 2024-11-12 08:14:30 +11:00
fake.rb FEATURE: forum researcher persona for deep research (#1313) 2025-05-14 12:36:16 +10:00
gemini.rb FIX: make AI helper more robust (#1484) 2025-07-04 14:47:11 +10:00
hugging_face.rb FEATURE: improve tool support (#904) 2024-11-12 08:14:30 +11:00
mistral.rb FEATURE: Add support for Mistral models (#919) 2024-11-19 17:28:09 +11:00
ollama.rb FEATURE: improve tool support (#904) 2024-11-12 08:14:30 +11:00
open_ai.rb FEATURE: optionally support OpenAI responses API (#1423) 2025-06-11 17:12:25 +10:00
open_router.rb FEATURE: allow disabling of top_p and temp for thinking models (#1184) 2025-03-11 16:54:02 +11:00
samba_nova.rb DEV: Use structured responses for summaries (#1252) 2025-05-06 10:09:39 -03:00
vllm.rb FEATURE: improve tool support (#904) 2024-11-12 08:14:30 +11:00