mirror of
https://github.com/fawney19/Aether.git
synced 2026-09-02 17:30:23 +08:00
feat: configure auth channel mismatch formats
This commit is contained in:
@@ -140,6 +140,7 @@ export async function addProviderKey(
|
||||
api_key: string
|
||||
auth_type?: 'api_key' | 'service_account' | 'oauth' | 'bearer' // 认证类型
|
||||
auth_type_by_format?: Record<string, 'api_key' | 'bearer'> | null
|
||||
allow_auth_channel_mismatch_formats?: string[] | null
|
||||
auth_config?: Record<string, unknown> // 认证配置(Vertex AI Service Account JSON)
|
||||
name: string
|
||||
rate_multipliers?: Record<string, number> | null // 按 API 格式的成本倍率
|
||||
@@ -169,6 +170,7 @@ export async function updateProviderKey(
|
||||
api_key: string
|
||||
auth_type: 'api_key' | 'service_account' | 'oauth' | 'bearer' // 认证类型
|
||||
auth_type_by_format: Record<string, 'api_key' | 'bearer'> | null
|
||||
allow_auth_channel_mismatch_formats: string[] | null
|
||||
auth_config: Record<string, unknown> // 认证配置(Vertex AI Service Account JSON)
|
||||
name: string
|
||||
rate_multipliers: Record<string, number> | null // 按 API 格式的成本倍率
|
||||
|
||||
@@ -105,6 +105,7 @@ export interface PoolKeyDetail {
|
||||
is_active: boolean
|
||||
auth_type: string
|
||||
auth_type_by_format?: Record<string, 'api_key' | 'bearer'> | null
|
||||
allow_auth_channel_mismatch_formats?: string[] | null
|
||||
credential_kind?: 'raw_secret' | 'oauth_session' | 'service_account' | string | null
|
||||
runtime_auth_kind?: 'api_key' | 'bearer' | 'service_account' | 'mixed' | 'unknown' | string | null
|
||||
oauth_managed?: boolean
|
||||
@@ -212,6 +213,7 @@ export interface PoolKeySelectionItem {
|
||||
key_name: string
|
||||
auth_type: string
|
||||
auth_type_by_format?: Record<string, 'api_key' | 'bearer'> | null
|
||||
allow_auth_channel_mismatch_formats?: string[] | null
|
||||
credential_kind?: 'raw_secret' | 'oauth_session' | 'service_account' | string | null
|
||||
runtime_auth_kind?: 'api_key' | 'bearer' | 'service_account' | 'mixed' | 'unknown' | string | null
|
||||
oauth_managed?: boolean
|
||||
|
||||
@@ -231,6 +231,7 @@ export interface EndpointAPIKey {
|
||||
api_key_plain?: string | null
|
||||
auth_type: 'api_key' | 'service_account' | 'oauth' | 'bearer' // 认证类型(必返回)
|
||||
auth_type_by_format?: Record<string, 'api_key' | 'bearer'> | null
|
||||
allow_auth_channel_mismatch_formats?: string[] | null
|
||||
credential_kind?: 'raw_secret' | 'oauth_session' | 'service_account' | string | null
|
||||
runtime_auth_kind?: 'api_key' | 'bearer' | 'service_account' | 'mixed' | 'unknown' | string | null
|
||||
oauth_managed?: boolean
|
||||
@@ -388,6 +389,7 @@ export interface EndpointAPIKeyUpdate {
|
||||
api_key?: string // 仅在需要更新时提供
|
||||
auth_type?: 'api_key' | 'service_account' | 'oauth' | 'bearer' // 认证类型
|
||||
auth_type_by_format?: Record<string, 'api_key' | 'bearer'> | null
|
||||
allow_auth_channel_mismatch_formats?: string[] | null
|
||||
auth_config?: Record<string, unknown> // 认证配置(Vertex AI Service Account JSON)
|
||||
rate_multipliers?: Record<string, number> | null // 按 API 格式的成本倍率
|
||||
internal_priority?: number
|
||||
|
||||
Reference in New Issue
Block a user