Issue with Schema Configuration on Gemini-Exp-1206 API

Hello Google Team,

I am experiencing an internal error when configuring a schema using the Gemini-Exp-1206 API. This issue occurs both through the API call and via the AI Model portal.

Schema Definition:

{
  "type": "object",
  "properties": {
    "status": {
      "type": "string",
      "enum": [
        "success",
        "false"
      ]
    },
    "clips": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "title": {
            "type": "string"
          },
          "viral": {
            "type": "number"
          },
          "multimodal_title": {
            "type": "string"
          },
          "multimodal_description": {
            "type": "string"
          },
          "multimodal_social": {
            "type": "string"
          },
          "multimodal_keywords": {
            "type": "string"
          },
          "videoCuts": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "start": {
                  "type": "string"
                },
                "end": {
                  "type": "string"
                },
                "scene": {
                  "type": "string"
                },
                "transcription": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "start": {
                        "type": "string"
                      },
                      "end": {
                        "type": "string"
                      },
                      "text": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "start",
                      "end",
                      "text"
                    ]
                  }
                }
              },
              "required": [
                "start",
                "end",
                "scene"
              ]
            }
          },
          "editedVideo": {
            "type": "string"
          }
        },
        "required": [
          "title",
          "viral",
          "multimodal_title",
          "multimodal_description",
          "multimodal_social",
          "multimodal_keywords",
          "videoCuts",
          "editedVideo"
        ]
      }
    }
  },
  "required": [
    "status",
    "clips"
  ]
}

When attempting to use this schema configuration, the system returns an internal error, which prevents successful schema application.

Steps to Reproduce:

  1. Configure the schema using the Gemini-Exp-1206 API endpoint or via the AI Model portal with the provided JSON schema.
  2. Trigger the API call or submit through the portal.
  3. Observe the internal error response.

Expected Behavior: The schema should be accepted without triggering an internal error, and the API should function as expected with the provided schema.

Additional Information:

  • The error occurs consistently with the above schema.
  • The API version in use is gemini-exp-1206.

Please investigate this issue and advise on potential fixes or workarounds. If any additional information is needed, feel free to reach out.

Hi @Maximiliano_Annunzia , Welcome to the forum.

I tested your schema configuration with other models, and it worked fine. There seems to be an issue with gemini-exp-1206 model.
Thanks for pointing out the bug. I will escalate this issue with the team.