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 claude 3 / anthropic with cost calculation + convenience fixes. gpt-engineer is coauthor #1057

Closed
wants to merge 16 commits into from

Conversation

AntonOsika
Copy link
Owner

No description provided.

@AntonOsika AntonOsika changed the title Fix anthropic cost calculation + convenience fixes Add claude 3 / anthropic with cost calculation + convenience fixes. gpt-engineer is coauthor Mar 9, 2024
Copy link
Collaborator

@ErikBjare ErikBjare left a comment

Choose a reason for hiding this comment

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

LGTM, just need to fix the failing test

@viborc
Copy link
Collaborator

viborc commented Mar 18, 2024

@AntonOsika, can you check these tests so we can proceed with this?

@ErikBjare
Copy link
Collaborator

Fixed the remaining issues (afaik). Merging as soon as tests pass.

@ErikBjare
Copy link
Collaborator

Looks like there were more issues and broken tests. Not quite as easy as I thought to clean up.

@@ -110,7 +110,7 @@ def __init__(

logger.debug(f"Using model {self.model_name}")

def start(self, system: str, user: str, step_name: str) -> List[Message]:
def start(self, system: str, user: str, *, step_name: str) -> List[Message]:
Copy link
Collaborator

@ErikBjare ErikBjare Mar 18, 2024

Choose a reason for hiding this comment

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

What was the idea with this *?
Edit: removed it because it broke several tests that I didn't want to go through.

@ErikBjare
Copy link
Collaborator

Reviewing this PR has made me realize that we need to typecheck the codebase in CI: #1070

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