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

fix(types): remove misleading betas TypedDict property for the Batch API #697

Merged
merged 1 commit into from
Oct 16, 2024

Conversation

RobertCraigie
Copy link
Collaborator

This is now a type error in the Batch API as the nested betas key won't actually do anything, you need to provide it at the top-level

client.beta.messages.batches.create(
    requests=[
        {
            "custom_id": "...",
            "params": {
                "model": "claude-3-sonnet-20240229",
                "messages": [],
                "max_tokens": 1024,
                "betas": [...],
            },
        }
    ]
)

@RobertCraigie RobertCraigie requested a review from a team as a code owner October 16, 2024 14:36
@RobertCraigie RobertCraigie changed the base branch from main to next October 16, 2024 14:40
@RobertCraigie RobertCraigie merged commit 6b55995 into next Oct 16, 2024
5 checks passed
@RobertCraigie RobertCraigie deleted the robert/remove-betas-prop branch October 16, 2024 14:40
@stainless-app stainless-app bot mentioned this pull request Oct 16, 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.

1 participant