discourse/plugins/discourse-ai/spec/lib
Natalie Tay 5af43b64ce
FIX: Improve prompt and check returned value conforms to standard (#35763)
This commit improves the prompt, and also matches the return value
against this:
- https://datatracker.ietf.org/doc/html/rfc5646#section-2.2.1
- **Primary Language Subtag**: ... Two-character primary language
subtags were defined in the IANA registry according to the assignments
found in the standard "ISO 639-1:2002 ...
- **Extended Language Subtags**: ... Extended language subtags consist
solely of three-letter subtags.

This commit also moves examples into its own 

Meta:
https://meta.discourse.org/t/locale-detector-return-value-issues/381852
2025-11-05 17:41:49 +08:00
..
automation DEV: Allow AI tagging automation to tag system-created topics (#35245) 2025-10-08 11:47:16 -04:00
completions FEATURE: Add Prometheus metrics for LLM API calls (#35636) 2025-10-28 14:10:42 -03:00
discord/bot
discourse_automation FIX: Skip triage on edits when unhandled flags exist (#35218) 2025-10-06 15:08:12 -03:00
inference FEATURE: Add support for matryoshka in Gemini embeddings (#34145) 2025-08-07 15:35:08 -03:00
inferred_concepts DEV: Update rubocop-discourse to 3.13 and autofix issues (#35073) 2025-10-06 16:11:01 +02:00
modules FIX: Stop FoldContent truncation from splitting multi-codepoint emoji (#35658) 2025-10-28 13:49:59 -03:00
personas DEV: Update rubocop-discourse to 3.13 and autofix issues (#35073) 2025-10-06 16:11:01 +02:00
translation FIX: Improve prompt and check returned value conforms to standard (#35763) 2025-11-05 17:41:49 +08:00
utils DEV: Update rubocop-discourse to 3.13 and autofix issues (#35073) 2025-10-06 16:11:01 +02:00
guardian_extensions_spec.rb FEATURE: configure a default LLM model for all features (#33752) 2025-07-28 16:08:00 -03:00