Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
陈曦
sub2api
Commits
be18bc6f
"backend/cmd/vscode:/vscode.git/clone" did not exist on "3a67002cfe4eff9ad93d8632679557ccef4e0767"
Commit
be18bc6f
authored
Feb 28, 2026
by
shaw
Browse files
chore: 恢复数据库迁移文件060和修正版本号
parent
9d795061
Changes
2
Show whitespace changes
Inline
Side-by-side
backend/cmd/server/VERSION
View file @
be18bc6f
0.1.8
5.15
0.1.8
8
\ No newline at end of file
backend/migrations/060_add_gemini31_flash_image_to_model_mapping.sql
View file @
be18bc6f
-- Add gemini-3.1-flash-image
mapping keys without wiping existing custom
mapping
s.
-- Add gemini-3.1-flash-image
and gemini-3.1-flash-image-preview to model_
mapping
--
--
-- Background:
-- Background:
-- Antigravity now supports gemini-3.1-flash-image as the latest image generation model
.
-- Antigravity now supports gemini-3.1-flash-image as the latest image generation model
,
--
Existing accounts may still contain
gemini-3-pro-image
aliases
.
--
replacing the previous
gemini-3-pro-image.
--
--
-- Strategy:
-- Strategy:
-- Incrementally upsert only image-related keys in credentials.model_mapping:
-- Directly overwrite the entire model_mapping with updated mappings
-- 1) add canonical 3.1 image keys
-- This ensures consistency with DefaultAntigravityModelMapping in constants.go
-- 2) keep legacy 3-pro-image keys but remap them to 3.1 image for compatibility
-- This preserves user custom mappings and avoids full mapping overwrite.
UPDATE
accounts
UPDATE
accounts
SET
credentials
=
jsonb_set
(
SET
credentials
=
jsonb_set
(
jsonb_set
(
jsonb_set
(
jsonb_set
(
credentials
,
credentials
,
'{model_mapping,gemini-3.1-flash-image}'
,
'{model_mapping}'
,
'"gemini-3.1-flash-image"'
::
jsonb
,
'{
true
"claude-opus-4-6-thinking": "claude-opus-4-6-thinking",
),
"claude-opus-4-6": "claude-opus-4-6-thinking",
'{model_mapping,gemini-3.1-flash-image-preview}'
,
"claude-opus-4-5-thinking": "claude-opus-4-6-thinking",
'"gemini-3.1-flash-image"'
::
jsonb
,
"claude-opus-4-5-20251101": "claude-opus-4-6-thinking",
true
"claude-sonnet-4-6": "claude-sonnet-4-6",
),
"claude-sonnet-4-5": "claude-sonnet-4-5",
'{model_mapping,gemini-3-pro-image}'
,
"claude-sonnet-4-5-thinking": "claude-sonnet-4-5-thinking",
'"gemini-3.1-flash-image"'
::
jsonb
,
"claude-sonnet-4-5-20250929": "claude-sonnet-4-5",
true
"claude-haiku-4-5": "claude-sonnet-4-5",
),
"claude-haiku-4-5-20251001": "claude-sonnet-4-5",
'{model_mapping,gemini-3-pro-image-preview}'
,
"gemini-2.5-flash": "gemini-2.5-flash",
'"gemini-3.1-flash-image"'
::
jsonb
,
"gemini-2.5-flash-lite": "gemini-2.5-flash-lite",
true
"gemini-2.5-flash-thinking": "gemini-2.5-flash-thinking",
"gemini-2.5-pro": "gemini-2.5-pro",
"gemini-3-flash": "gemini-3-flash",
"gemini-3-pro-high": "gemini-3-pro-high",
"gemini-3-pro-low": "gemini-3-pro-low",
"gemini-3-flash-preview": "gemini-3-flash",
"gemini-3-pro-preview": "gemini-3-pro-high",
"gemini-3.1-pro-high": "gemini-3.1-pro-high",
"gemini-3.1-pro-low": "gemini-3.1-pro-low",
"gemini-3.1-pro-preview": "gemini-3.1-pro-high",
"gemini-3.1-flash-image": "gemini-3.1-flash-image",
"gemini-3.1-flash-image-preview": "gemini-3.1-flash-image",
"gpt-oss-120b-medium": "gpt-oss-120b-medium",
"tab_flash_lite_preview": "tab_flash_lite_preview"
}'
::
jsonb
)
)
WHERE
platform
=
'antigravity'
WHERE
platform
=
'antigravity'
AND
deleted_at
IS
NULL
AND
deleted_at
IS
NULL
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment