discourse-ai/spec/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_spec.rb FIX: implement max_output tokens (anthropic/openai/bedrock/gemini/open router) (#1447) 2025-06-19 16:00:11 +10:00
aws_bedrock_spec.rb FEATURE: add inferred concepts system (#1330) 2025-06-02 14:29:20 -03:00
cohere_spec.rb FIX: Retry parsing escaped inner JSON to handle control chars. (#1357) 2025-05-21 11:25:59 -03:00
endpoint_compliance.rb FEATURE: forum researcher persona for deep research (#1313) 2025-05-14 12:36:16 +10:00
gemini_spec.rb FIX: normalize keys in structured output (#1468) 2025-06-27 15:42:48 +10:00
hugging_face_spec.rb FIX: Add tool support to open ai compatible dialect and vllm (#734) 2024-08-02 09:52:33 -03:00
nova_spec.rb DEV: use a proper object for tool definition (#1337) 2025-05-15 17:32:39 +10:00
ollama_spec.rb FEATURE: improve tool support (#904) 2024-11-12 08:14:30 +11:00
open_ai_responses_api_spec.rb FEATURE: optionally support OpenAI responses API (#1423) 2025-06-11 17:12:25 +10:00
open_ai_spec.rb FIX: make AI helper more robust (#1484) 2025-07-04 14:47:11 +10:00
open_router_spec.rb FEATURE: allow disabling of top_p and temp for thinking models (#1184) 2025-03-11 16:54:02 +11:00
samba_nova_spec.rb FEATURE: improve tool support (#904) 2024-11-12 08:14:30 +11:00
vllm_spec.rb FEATURE: improve tool support (#904) 2024-11-12 08:14:30 +11:00