fix(antigravity): 固定按映射模型计费并补充回归测试

当账号配置了 model_mapping 时,确保计费使用映射后的实际模型,
而非用户请求的原始模型名,避免计费不准确。
This commit is contained in:
liuxiongfeng
2026-02-12 02:33:20 +08:00
parent daf7bf3e8b
commit 34936189d8
3 changed files with 145 additions and 7 deletions

View File

@@ -32,7 +32,7 @@ jobs:
working-directory: backend
run: |
go install github.com/securego/gosec/v2/cmd/gosec@latest
gosec -severity high -confidence high ./...
gosec -severity high -confidence high -exclude=G704 ./...
frontend-security:
runs-on: ubuntu-latest