fix: preserve provider auth metadata

This commit is contained in:
elky
2026-06-20 22:11:42 +08:00
parent 1123095bb7
commit f1c30439ff
51 changed files with 2098 additions and 420 deletions
+6
View File
@@ -169,8 +169,11 @@ export interface RequestDetail {
provider: string
api_format?: string
endpoint_api_format?: string
has_format_conversion?: boolean | null
model: string
target_model?: string | null // 映射后的目标模型名
reasoning_effort?: string | null
service_tier?: string | null
tokens: {
input: number
output: number
@@ -189,11 +192,14 @@ export interface RequestDetail {
cache_creation_input_tokens?: number
cache_creation_input_tokens_5m?: number
cache_creation_input_tokens_1h?: number
cache_creation_ephemeral_5m_input_tokens?: number
cache_creation_ephemeral_1h_input_tokens?: number
cache_read_input_tokens?: number
// Additional cost fields
input_cost?: number
output_cost?: number
total_cost?: number
actual_cost?: number
cache_creation_cost?: number
cache_read_cost?: number
image_output_cost?: number