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

Add GPT-4o/GPT-4o-mini support #1424

Closed
tanishq-acu opened this issue Jul 30, 2024 · 0 comments
Closed

Add GPT-4o/GPT-4o-mini support #1424

tanishq-acu opened this issue Jul 30, 2024 · 0 comments

Comments

@tanishq-acu
Copy link

Feature description
Add GPT-4o and GPT-4o-mini models to constants in metagpt.utils.token_counter.py. Also add models to count_input_tokens() method.
Your Feature
Add "gpt-4o-mini": 128000,"gpt-4o": 128000, to metagpt.utils.token_counter.TOKEN_MAX.
Add "gpt-4o": {"prompt": 0.005, "completion": 0.015}, "gpt-4o-mini": {"prompt": 0.00015, "completion": 0.0006}, to metagpt.utils.token_counter.TOKEN_COSTS.
Can also do the same for the variants.

Also:
Add "gpt-4o", "gpt-4o-mini" to count_input_tokens in metagpt.utils.token_counter (line 335)

better629 added a commit that referenced this issue Aug 7, 2024
fixbug: #1424 Add GPT-4o/GPT-4o-mini support
@iorisa iorisa closed this as completed Aug 7, 2024
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

No branches or pull requests

2 participants