Skip to content

🌟 The Multi-Agent Framework: First AI Software Company, Towards Natural Language Programming

fix bug

geekanfeedafeb7846
diff --git a/metagpt/provider/openai_api.py b/metagpt/provider/openai_api.py
index 05a8d75f8..3f3a4e1a7 100644
--- a/metagpt/provider/openai_api.py
+++ b/metagpt/provider/openai_api.py
@@ -223,7 +223,7 @@ class OpenAILLM(BaseLLM):
def get_costs(self) -> Costs:
if not self.cost_manager:
- return Costs()
+ return Costs(0, 0, 0, 0)
return self.cost_manager.get_costs()
def _get_max_tokens(self, messages: list[dict]):