Discourse AI - Détection de spam

Votre clé API est invalide, c’est pourquoi aucun test n’est effectué.

Si vous effectuez un test sur https://www.foodtalkcentral.com/admin/plugins/discourse-ai/ai-spam et collez cette URL, vous obtiendrez une erreur 500. Si vous examinez les journaux dans
/var/discourse/shared/web-only/log/rails/production.log et recherchez " 500 ", vous verrez

Completed 200 OK in 399ms (Views: 123.1ms | ActiveRecord: 0.0ms (0 queries, 0 cached) | GC: 22.9ms)
DiscourseAi::Completions::Endpoints::Gemini: status: 400 - body: {
  "error": {
    "code": 400,
    "message": "API key not valid. Please pass a valid API key.",
    "status": "INVALID_ARGUMENT",
    "details": [
      {
        "@type": "type.googleapis.com/google.rpc.ErrorInfo",
        "reason": "API_KEY_INVALID",
        "domain": "googleapis.com",
        "metadata": {
          "service": "generativelanguage.googleapis.com"
        }
      },
      {
        "@type": "type.googleapis.com/google.rpc.LocalizedMessage",
        "locale": "en-US",
        "message": "API key not valid. Please pass a valid API key."
      }
    ]
  }
}
1 « J'aime »