欢迎光临
我们一直在努力

How can I configure Structured Output for model: gemini-2.5-flash-image?

题意:

如何为 gemini-2.5-flash-image 模型配置结构化输出(Structured Output)?

问题背景:

In the official documentation, it says Structured Output supported:

官方文档中注明,其支持结构化输出(Structured Output):

(Gemini Models, Gemini 2.5 Flash)

But when making requests, it returns an HTTP 400 error:

但发起请求时,系统会返回 HTTP 400 错误:

JSON mode is not enabled for this model

Below is a 400 error example (us

赞(0)
未经允许不得转载:171主机测评 » How can I configure Structured Output for model: gemini-2.5-flash-image?
分享到: 更多 (0)

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址