Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

multi_agent_type correct cost/usage calculations #1839

Merged
merged 1 commit into from
Sep 13, 2024
Merged

Conversation

fatihozturkh2o
Copy link
Contributor

@fatihozturkh2o fatihozturkh2o commented Sep 12, 2024

{'usage_including_cached_inference': {'total_cost': 0.040175,
  'gpt-4o-2024-05-13': {'cost': 0.040175,
   'prompt_tokens': 7021,
   'completion_tokens': 338,
   'total_tokens': 7359}},
 'usage_excluding_cached_inference': {'total_cost': 0.040175,
  'gpt-4o-2024-05-13': {'cost': 0.040175,
   'prompt_tokens': 7021,
   'completion_tokens': 338,
   'total_tokens': 7359}}}

Reference: https://github.com/microsoft/autogen/blob/63d3297ffc66120a16e60391af538354a11e5d35/autogen/agentchat/utils.py#L29

Copy link
Collaborator

@pseudotensor pseudotensor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks!

@pseudotensor pseudotensor merged commit 1411b87 into main Sep 13, 2024
2 checks passed
@pseudotensor pseudotensor deleted the issue_1838 branch September 13, 2024 00:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fix cost for multi-agent
2 participants