[GH-ISSUE #58] gemini-3-pro-image生图出错。 server_error, code: 503 #51

Closed
opened 2026-02-27 15:38:08 +03:00 by kerem · 4 comments
Owner

Originally created by @szansonhuang on GitHub (Feb 23, 2026).
Original GitHub issue: https://github.com/NikkeTryHard/zerogravity/issues/58

Image Image

zerogravity在本地部署好了,API给另外一个做AI PPT和信息图的开源项目使用,模型名称没错,文本生成和图片识别模型使用gemini-3-flash功能正常,但是gemini-3-pro-image图片生成就出错。

Originally created by @szansonhuang on GitHub (Feb 23, 2026). Original GitHub issue: https://github.com/NikkeTryHard/zerogravity/issues/58 <img width="857" height="812" alt="Image" src="https://github.com/user-attachments/assets/27ca75ec-e5e2-404a-9501-930f3448f571" /> <img width="825" height="840" alt="Image" src="https://github.com/user-attachments/assets/49e080d1-481f-4ead-a35b-a13af01d7782" /> zerogravity在本地部署好了,API给另外一个做AI PPT和信息图的开源项目使用,模型名称没错,文本生成和图片识别模型使用gemini-3-flash功能正常,但是gemini-3-pro-image图片生成就出错。
kerem closed this issue 2026-02-27 15:38:08 +03:00
Author
Owner

@NikkeTryHard commented on GitHub (Feb 23, 2026):

Image
<!-- gh-comment-id:3943802797 --> @NikkeTryHard commented on GitHub (Feb 23, 2026): <img width="664" height="723" alt="Image" src="https://github.com/user-attachments/assets/746b9145-e422-4f4e-93d7-8635ddeba24b" />
Author
Owner

@szansonhuang commented on GitHub (Feb 23, 2026):

zg-trace-2026-02-23_09-16-11_gemini-3-pro-image-28c8bce8.tar.gz

<!-- gh-comment-id:3943827639 --> @szansonhuang commented on GitHub (Feb 23, 2026): [zg-trace-2026-02-23_09-16-11_gemini-3-pro-image-28c8bce8.tar.gz](https://github.com/user-attachments/files/25481500/zg-trace-2026-02-23_09-16-11_gemini-3-pro-image-28c8bce8.tar.gz)
Author
Owner

@NikkeTryHard commented on GitHub (Feb 23, 2026):

Quick correction (clean summary):

Fixed in zerogravity-src and pushed to main at commit 96b2863.

Changes shipped:

  • generate_image follow-up is now blocked for non-image models (only allowed for gemini-3-pro-image)
  • added regression tests for both block and allow paths in MITM proxy
  • inline image base64 is now emitted consistently in streaming for chat completions, responses, messages, and gemini streamGenerateContent
  • fixed image-only stream completion so responses terminate cleanly
  • added integration tests for inline-image streaming and completion markers

Verification run:

  • proxy regression tests (both)
  • cargo test --bin zerogravity integration_tests
  • cargo clippy --all-targets
  • cargo build

Thanks again for the report.

<!-- gh-comment-id:3944210744 --> @NikkeTryHard commented on GitHub (Feb 23, 2026): Quick correction (clean summary): Fixed in zerogravity-src and pushed to main at commit 96b2863. Changes shipped: - generate_image follow-up is now blocked for non-image models (only allowed for gemini-3-pro-image) - added regression tests for both block and allow paths in MITM proxy - inline image base64 is now emitted consistently in streaming for chat completions, responses, messages, and gemini streamGenerateContent - fixed image-only stream completion so responses terminate cleanly - added integration tests for inline-image streaming and completion markers Verification run: - proxy regression tests (both) - cargo test --bin zerogravity integration_tests - cargo clippy --all-targets - cargo build Thanks again for the report.
Author
Owner

@NikkeTryHard commented on GitHub (Feb 23, 2026):

Closing as fixed by commit 96b2863 in zerogravity-src main. If you still hit this on latest, reopen and I’ll dig in immediately.

<!-- gh-comment-id:3944211038 --> @NikkeTryHard commented on GitHub (Feb 23, 2026): Closing as fixed by commit 96b2863 in zerogravity-src main. If you still hit this on latest, reopen and I’ll dig in immediately.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/zerogravity#51
No description provided.