discourse/plugins/discourse-ai/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
..
ai_bot DEV: Update rubocop-discourse to 3.13 and autofix issues (#35073) 2025-10-06 16:11:01 +02:00
ai_helper FEATURE: Hosted LLM credit system (#35162) 2025-10-14 07:48:20 -07:00
ai_moderation DEV: Clean up scope resolution operators in plugins (#34979) 2025-09-30 14:36:34 +02:00
automation FIX: Prevent duplicate PMs when multiple LLM triage rules flag same post (#35596) 2025-10-24 11:10:38 -03:00
completions FEATURE: Add Prometheus metrics for LLM API calls (#35636) 2025-10-28 14:10:42 -03:00
configuration DEV: Allow seeded models in enumerator (#35385) 2025-10-14 11:05:33 -07:00
database DEV: Clean up scope resolution operators in plugins (#34979) 2025-09-30 14:36:34 +02:00
discord/bot FIX: Ensure AI default LLM model fallback is present (#35549) 2025-10-22 09:03:29 -07:00
discover FEATURE: Promote Discover to a dedicated feature. (#34846) 2025-09-23 14:01:45 -03:00
embeddings FEATURE: Append limited search results with semantic search (#35446) 2025-10-16 09:27:31 -07:00
inference DEV: Clean up scope resolution operators in plugins (#34979) 2025-09-30 14:36:34 +02:00
inferred_concepts FIX: Ensure AI default LLM model fallback is present (#35549) 2025-10-22 09:03:29 -07:00
personas FIX: Improve prompt and check returned value conforms to standard (#35763) 2025-11-05 17:41:49 +08:00
sentiment
summarization FIX: Stop FoldContent truncation from splitting multi-codepoint emoji (#35658) 2025-10-28 13:49:59 -03:00
tasks DEV: Hand-pick Rails/WhereNot autofixes (#35117) 2025-10-03 13:29:22 +02:00
translation FIX: Improve prompt and check returned value conforms to standard (#35763) 2025-11-05 17:41:49 +08:00
utils DEV: Hand-pick Rails/WhereNot autofixes (#35117) 2025-10-03 13:29:22 +02:00
automation.rb FEATURE: Add the option to flag, delete and silence in LLM Triage (#35285) 2025-10-08 13:32:10 -03:00
embeddings.rb
engine.rb DEV: Clean up scope resolution operators in plugins (#34979) 2025-09-30 14:36:34 +02:00
guardian_extensions.rb PERF: Use persona cache for translation and summarization lookups (#35560) 2025-10-23 12:19:20 -03:00
multisite_hash.rb
post_extensions.rb
summarization.rb PERF: Use persona cache for translation and summarization lookups (#35560) 2025-10-23 12:19:20 -03:00
topic_extensions.rb
translation.rb DEV: Add more early exits for credit limits on translation jobs (#35578) 2025-10-23 13:04:18 -07:00