discourse/plugins/discourse-ai/spec/lib
Natalie Tay 3d47622d0f
FIX: Do not send empty content when detecting language (#34825)
Seeing many errors about

```
DiscourseAi::Completions::Endpoints::Gemini: status: 400 - body: {
  "error": {
    "code": 400,
    "message": "* GenerateContentRequest.contents: contents is not specified\n",
    "status": "INVALID_ARGUMENT"
  }
}
```

This is triggered due to posts with images and no text.

The solution here is to set the locale to site default locale.
2025-09-17 00:52:40 +08:00
..
automation FIX: use an integer, not a float, in the AI tagging automation (#34622) 2025-08-28 16:39:36 -04:00
completions DEV: Debug timeout of .join on AI cancel_manager_spec (#34663) 2025-09-01 09:44:04 +01:00
discord/bot
discourse_automation FEATURE: Use a persona when running the AI triage automation script (#34010) 2025-08-04 09:11:13 -03:00
inference FEATURE: Add support for matryoshka in Gemini embeddings (#34145) 2025-08-07 15:35:08 -03:00
inferred_concepts
modules FIX: Ensure base_path is correctly inserted into LLM triage messages. (#34778) 2025-09-11 11:21:06 +10:00
personas FIX: Default prompts have to be explicit about the expected format. (#34442) 2025-08-20 13:56:21 -03:00
translation FIX: Do not send empty content when detecting language (#34825) 2025-09-17 00:52:40 +08:00
utils FEATURE: configure a default LLM model for all features (#33752) 2025-07-28 16:08:00 -03:00
guardian_extensions_spec.rb FEATURE: configure a default LLM model for all features (#33752) 2025-07-28 16:08:00 -03:00