mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-10 03:09:03 +08:00
Fix increase_usage of total_price in agent_runner (#6688)
This commit is contained in:
parent
79715345ef
commit
20d3e1d297
@ -79,6 +79,7 @@ class CotAgentRunner(BaseAgentRunner, ABC):
|
||||
llm_usage.completion_tokens += usage.completion_tokens
|
||||
llm_usage.prompt_price += usage.prompt_price
|
||||
llm_usage.completion_price += usage.completion_price
|
||||
llm_usage.total_price += usage.total_price
|
||||
|
||||
model_instance = self.model_instance
|
||||
|
||||
|
@ -62,6 +62,7 @@ class FunctionCallAgentRunner(BaseAgentRunner):
|
||||
llm_usage.completion_tokens += usage.completion_tokens
|
||||
llm_usage.prompt_price += usage.prompt_price
|
||||
llm_usage.completion_price += usage.completion_price
|
||||
llm_usage.total_price += usage.total_price
|
||||
|
||||
model_instance = self.model_instance
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user