# Summarize Topic with AI loads indefinitely, Invalid JSON Payload Received?

**URL:** https://meta.discourse.org/t/summarize-topic-with-ai-loads-indefinitely-invalid-json-payload-received/365587
**Category:** Bug
**Tags:** ai
**Created:** [May 10, 2025, 1:48pm UTC](https://meta.discourse.org/t/summarize-topic-with-ai-loads-indefinitely-invalid-json-payload-received/365587 "2025-05-10T13:48:18Z")
**Posts on this page:** 1
**Showing post:** 1

<div class="post-metadata">

### Author: ![KhoiUSA](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/khoiusa/32/373010_2.png) [@KhoiUSA](https://meta.discourse.org/u/KhoiUSA)
#### Post date: [May 10, 2025, 1:48pm UTC](https://meta.discourse.org/t/summarize-topic-with-ai-loads-indefinitely-invalid-json-payload-received/365587/1 "2025-05-10T13:48:18Z")

</div>

Hello, recently I have noticed that the **Topic summary** function on my forum has seemingly stopped working entirely, with requests to generate a topic summary hanging indefenitely. It is notable that the other AI tools on the site are working properly such as Summarization Gists and AI Composer Helper.

Below is an image of the Topic summary modal seemingly hanging:

 ![A black screen displays the text "Topic summary," with placeholder blocks below and a caption "Summarizing topic using AI...". (Captioned by AI)](https://global.discourse-cdn.com/meta/original/4X/c/f/1/cf1ecebfbe51a4fa41bc4f26651296a14ebbc4f5.png)

Here is a log entry that appears to be related:

 ![This image shows a terminal or console output for generating job URLs using OpenAI's GPT-3.5 API, where successful request statuses are highlighted in green and errors in red. (Captioned by AI)](https://global.discourse-cdn.com/meta/original/4X/2/3/3/233e189092cee693f2be5269df1a4397761273fe.png)

```plaintext
DiscourseAi::Completions::Endpoints::Gemini: status: 400 - body: {
  "error": {
    "code": 400,
    "message": "Invalid value at 'generation_config.response_schema.type' (type.googleapis.com/google.ai.generativelanguage.v1beta.Type), \"json_schema\"\nInvalid JSON payload received. Unknown name \"json_schema\" at 'generation_config.response_schema': Cannot find field.",
    "status": "INVALID_ARGUMENT",
    "details": [
      {
        "@type": "type.googleapis.com/google.rpc.BadRequest",
        "fieldViolations": [
          {
            "field": "generation_config.response_schema.type",
            "description": "Invalid value at 'generation_config.response_schema.type' (type.googleapis.com/google.ai.generativelanguage.v1beta.Type), \"json_schema\""
          },
          {
            "field": "generation_config.response_schema",
            "description": "Invalid JSON payload received. Unknown name \"json_schema\" at 'generation_config.response_schema': Cannot find field."
          }
        ]
      }
    ]
  }
}

```

Has anyone else encountered this issue or have an idea on how to resolve this? Thanks in advance.

---

_[View the full topic](https://meta.discourse.org/t/summarize-topic-with-ai-loads-indefinitely-invalid-json-payload-received/365587)._
