mirror of
https://gh.wpcy.net/https://github.com/discourse/discourse.git
synced 2026-05-16 04:45:30 +08:00
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.
|
||
|---|---|---|
| .. | ||
| base_candidates.rb | ||
| base_translator.rb | ||
| category_candidates.rb | ||
| category_locale_detector.rb | ||
| category_localizer.rb | ||
| content_splitter.rb | ||
| entry_point.rb | ||
| language_detector.rb | ||
| post_candidates.rb | ||
| post_detection_text.rb | ||
| post_locale_detector.rb | ||
| post_localizer.rb | ||
| post_raw_translator.rb | ||
| short_text_translator.rb | ||
| topic_candidates.rb | ||
| topic_locale_detector.rb | ||
| topic_localizer.rb | ||
| topic_title_translator.rb | ||
| verbose_logger.rb | ||