feat: 修复 Gemini 生图接口并新增前端生图测试能力#930
Merged
Wei-Shaw merged 3 commits intoWei-Shaw:mainfrom Mar 12, 2026
Merged
Conversation
liafonx
pushed a commit
to liafonx/sub2api
that referenced
this pull request
Mar 20, 2026
…-image-support feat: 修复 Gemini 生图接口并新增前端生图测试能力
qyhfrank
pushed a commit
to qyhfrank/sub2api
that referenced
this pull request
Mar 24, 2026
…-image-support feat: 修复 Gemini 生图接口并新增前端生图测试能力
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
变更说明
gemini-2.5-flash-image/gemini-3.1-flash-image在原生 fallback、管理端 curated 模型列表、Antigravity 默认映射和持久化model_mapping中的支持测试
GOCACHE=/tmp/go-cache GOMODCACHE=/tmp/go-mod-cache go test -tags=unit ./internal/domain ./internal/pkg/gemini ./internal/pkg/geminicli ./internal/pkg/antigravity ./internal/service -run "TestDefaultAntigravityModelMapping_ImageCompatibilityAliases|TestDefaultModels_ContainsImageModels|TestDefaultModels_ContainsNewAndLegacyImageModels|TestIsImageGenerationModel|TestExtractImageSize"GOCACHE=/tmp/go-cache GOMODCACHE=/tmp/go-mod-cache go test -tags=unit ./internal/service ./internal/handler/admin -run "TestCreateGeminiTestPayload_ImageModel|TestProcessGeminiStream_EmitsImageEvent"pnpm --dir ./frontend exec vitest run src/components/admin/account/__tests__/AccountTestModal.spec.ts src/composables/__tests__/useModelWhitelist.spec.ts src/components/account/__tests__/AccountUsageCell.spec.ts src/components/account/__tests__/BulkEditAccountModal.spec.ts