🌟 The Multi-Agent Framework: First AI Software Company, Towards Natural Language Programming
feat: Unified Cost Calculation Logic.
莘权 马1b0dfbc846d0
diff --git a/metagpt/provider/metagpt_api.py b/metagpt/provider/metagpt_api.pyindex 8c7daeac6..d71fa9bda 100644--- a/metagpt/provider/metagpt_api.py+++ b/metagpt/provider/metagpt_api.py@@ -10,7 +10,6 @@ from openai.types import CompletionUsagefrom metagpt.configs.llm_config import LLMTypefrom metagpt.provider import OpenAILLMfrom metagpt.provider.llm_provider_registry import register_provider-from metagpt.utils.exceptions import handle_exception@register_provider(LLMType.METAGPT)@@ -19,7 +18,3 @@ class MetaGPTLLM(OpenAILLM):# The current billing is based on usage frequency. If there is a future billing logic based on the# number of tokens, please refine the logic here accordingly.return CompletionUsage(prompt_tokens=0, completion_tokens=0, total_tokens=0)-- @handle_exception- def _update_costs(self, usage: CompletionUsage):- pass