mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-05-21 14:05:17 +02:00
feat: CostManager改pydantic结构,以备RPC传参
This commit is contained in:
parent
19767496b1
commit
a7157d9e7a
1 changed files with 3 additions and 3 deletions
|
|
@ -62,9 +62,9 @@ class CostManager(BaseModel):
|
|||
|
||||
total_prompt_tokens: int = 0
|
||||
total_completion_tokens: int = 0
|
||||
total_budget: int = 0
|
||||
max_budget: int
|
||||
total_cost: int = 0
|
||||
total_budget: float = 0
|
||||
max_budget: float
|
||||
total_cost: float = 0
|
||||
|
||||
def update_cost(self, prompt_tokens, completion_tokens, model):
|
||||
"""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue