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

Feat/mech support #160

Merged
merged 10 commits into from
Feb 7, 2024
Merged

Feat/mech support #160

merged 10 commits into from
Feb 7, 2024

Conversation

0xArdi
Copy link
Collaborator

@0xArdi 0xArdi commented Feb 6, 2024

This PR adds support in the mech for the changes proposed in #155 .

import logging
from typing import Any, Dict, Union

import anthropic
Copy link
Contributor

Choose a reason for hiding this comment

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

Why? That seems strange to include here

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Comment on lines +39 to +40
if "claude" in model:
return anthropic.Anthropic().count_tokens(text)
Copy link
Contributor

Choose a reason for hiding this comment

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

The benchmark utils needs to be agnostic to this

@0xArdi
Copy link
Collaborator Author

0xArdi commented Feb 7, 2024

Req. changes will be addressed in another PR.

@0xArdi 0xArdi merged commit aba3a6f into test/benchmark Feb 7, 2024
6 checks passed
@0xArdi 0xArdi deleted the feat/mech-support branch February 7, 2024 10:33
@0xArdi 0xArdi mentioned this pull request Feb 23, 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

Successfully merging this pull request may close these issues.

3 participants