fix: LLMUsage ttft bug

This commit is contained in:
刘江波 2025-03-07 12:00:59 +08:00
parent f368cbe768
commit 974fff813c

View File

@ -355,6 +355,7 @@ class LargeLanguageModel(AIModel):
total_price=prompt_price_info.total_amount + completion_price_info.total_amount,
currency=prompt_price_info.currency,
latency=time.perf_counter() - self.started_at,
ttft=self.ttft,
)
return usage