mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-12 04:58:59 +08:00
fix: llm result usage none (#1940)
This commit is contained in:
parent
296bf443a8
commit
a0f74cdd9d
@ -165,7 +165,7 @@ class LargeLanguageModel(AIModel):
|
||||
model=real_model,
|
||||
prompt_messages=prompt_messages,
|
||||
message=prompt_message,
|
||||
usage=usage,
|
||||
usage=usage if usage else LLMUsage.empty_usage(),
|
||||
system_fingerprint=system_fingerprint
|
||||
),
|
||||
credentials=credentials,
|
||||
|
Loading…
x
Reference in New Issue
Block a user