mirror of
https://github.com/snailyp/gemini-balance.git
synced 2026-09-07 16:56:36 +08:00
feat: 支持图像生成流式响应并优化配置
- 为 OpenAI 兼容路由的图像生成聊天添加流式支持。 - 重构 `gemini-2.0-flash-exp` 安全设置,使用常量统一管理。 - 更改图像生成默认响应格式为 `url`。 - 启用 `.env.example` 中的 `AUTH_TOKEN`。 - 清理部分代码注释。
This commit is contained in:
@@ -32,4 +32,4 @@ class ImageGenerationRequest(BaseModel):
|
||||
size: Optional[str] = "1024x1024"
|
||||
quality: Optional[str] = None
|
||||
style: Optional[str] = None
|
||||
response_format: Optional[str] = "b64_json"
|
||||
response_format: Optional[str] = "url"
|
||||
|
||||
Reference in New Issue
Block a user