Skip to content

AI-Proxy对接Gemini接口,需要支持generationConfig参数 || AI-Proxy connects to the Gemini interface and needs to support the generationConfig parameter #3146

@lucky82-xin

Description

@lucky82-xin
Image 上图是Gemini图片编辑的时候遇见的:设置'宽高比'、'输出类型'的传参数无效。 官方链接:https://ai.google.dev/gemini-api/docs/image-generation?hl=zh-cn#rest_13

下图是请求体,能正常请求,返回图片。但是参数没有失效,返回的不是想要的格式
Image

响应内容:
图片也是默认的1024x1024,而不是16:9的1344x768

Image
Image The picture above is what I encountered when editing Gemini pictures: the parameters passed to set the 'aspect ratio' and 'output type' are invalid. Official link: https://ai.google.dev/gemini-api/docs/image-generation?hl=zh-cn#rest_13

The picture below is the request body, which can be requested normally and the picture returned. But the parameters are not invalid and the format returned is not the desired one.
Image

Response content:
The picture is also the default 1024x1024, not the 1344x768 of 16:9

Image

Metadata

Metadata

Assignees

Type

No type

Projects

Status

Todo

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions