refactor: remove unused IsAntigravityModelSupported function and its tests

This commit is contained in:
erio
2026-02-07 14:42:28 +08:00
parent 386126b1b2
commit 14c6c9321a
2 changed files with 0 additions and 51 deletions

View File

@@ -22,7 +22,6 @@ import (
"time"
"github.com/Wei-Shaw/sub2api/internal/config"
"github.com/Wei-Shaw/sub2api/internal/domain"
"github.com/Wei-Shaw/sub2api/internal/pkg/claude"
"github.com/Wei-Shaw/sub2api/internal/pkg/ctxkey"
"github.com/Wei-Shaw/sub2api/internal/util/responseheaders"
@@ -2617,13 +2616,6 @@ func (s *GatewayService) isModelSupportedByAccount(account *Account, requestedMo
return account.IsModelSupported(requestedModel)
}
// IsAntigravityModelSupported 检查 Antigravity 平台是否支持指定模型
// 只有在默认映射DefaultAntigravityModelMapping中配置的模型才被支持
func IsAntigravityModelSupported(requestedModel string) bool {
// 检查是否在默认映射的 key 中
_, exists := domain.DefaultAntigravityModelMapping[requestedModel]
return exists
}
// GetAccessToken 获取账号凭证
func (s *GatewayService) GetAccessToken(ctx context.Context, account *Account) (string, string, error) {