fix(openai): 增强自动透传命中日志

This commit is contained in:
yangjianbo
2026-02-12 11:41:06 +08:00
parent 9c910c2049
commit 6533a4647d

View File

@@ -1012,7 +1012,14 @@ func (s *OpenAIGatewayService) forwardOpenAIPassthrough(
reqStream bool,
startTime time.Time,
) (*OpenAIForwardResult, error) {
log.Printf("[OpenAI 透传] 已启用account=%d name=%s", account.ID, account.Name)
log.Printf(
"[OpenAI 自动透传] 命中自动透传分支: account=%d name=%s type=%s model=%s stream=%v",
account.ID,
account.Name,
account.Type,
reqModel,
reqStream,
)
// Get access token
token, _, err := s.GetAccessToken(ctx, account)