Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.
Python agentagentic-aiagentic-frameworkagentic-workflowaiautomationclaudedeepseekgenaigptllmlow-codemcpnextjsno-codeopenaipythonskillsworkflow
Fix increase_usage of total_price in agent_runner (#6688)
Pedro Gomes20d3e1d29719
diff --git a/api/core/agent/cot_agent_runner.py b/api/core/agent/cot_agent_runner.pyindex 9bd8f37d858..06492bb12fb 100644--- a/api/core/agent/cot_agent_runner.py+++ b/api/core/agent/cot_agent_runner.py@@ -79,6 +79,7 @@ class CotAgentRunner(BaseAgentRunner, ABC):llm_usage.completion_tokens += usage.completion_tokensllm_usage.prompt_price += usage.prompt_pricellm_usage.completion_price += usage.completion_price+ llm_usage.total_price += usage.total_pricemodel_instance = self.model_instancediff --git a/api/core/agent/fc_agent_runner.py b/api/core/agent/fc_agent_runner.pyindex 7019b5e39fd..3ee6e47742a 100644--- a/api/core/agent/fc_agent_runner.py+++ b/api/core/agent/fc_agent_runner.py@@ -62,6 +62,7 @@ class FunctionCallAgentRunner(BaseAgentRunner):llm_usage.completion_tokens += usage.completion_tokensllm_usage.prompt_price += usage.prompt_pricellm_usage.completion_price += usage.completion_price+ llm_usage.total_price += usage.total_pricemodel_instance = self.model_instance