mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-07-20 16:51:07 +02:00
Merge pull request #771 from iorisa/feature/context
feat: replace CONTEXT with local context
This commit is contained in:
commit
16ec0ccc4c
68 changed files with 354 additions and 356 deletions
|
|
@ -84,7 +84,7 @@ class FireworksLLM(OpenAILLM):
|
|||
def _update_costs(self, usage: CompletionUsage):
|
||||
if self.config.calc_usage and usage:
|
||||
try:
|
||||
# use FireworksCostManager not CONTEXT.cost_manager
|
||||
# use FireworksCostManager not context.cost_manager
|
||||
self.cost_manager.update_cost(usage.prompt_tokens, usage.completion_tokens, self.model)
|
||||
except Exception as e:
|
||||
logger.error(f"updating costs failed!, exp: {e}")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue