Skip to content

Fix generated OpenAPI types for Anthropic AI provider #5121

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

Merged
merged 1 commit into from
Jul 1, 2025

Conversation

IMax153
Copy link
Member

@IMax153 IMax153 commented Jul 1, 2025

Type

  • Refactor
  • Feature
  • Bug Fix
  • Optimization
  • Documentation Update

Description

The OpenAPI specification that Anthropic maintains for its API is apparently
incorrect.
Some properties which are marked as nullable but required are sometimes not
returned by the API. This fixes the schemas associated with some of those
properties, though others may exist / be found that require manual adjustment.

Related

@github-project-automation github-project-automation bot moved this to Discussion Ongoing in PR Backlog Jul 1, 2025
Copy link

changeset-bot bot commented Jul 1, 2025

🦋 Changeset detected

Latest commit: 560b3f1

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@effect/ai-anthropic Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@IMax153 IMax153 merged commit 8e3c565 into main Jul 1, 2025
11 checks passed
@IMax153 IMax153 deleted the fix/anthropic-openapi-errors branch July 1, 2025 17:55
@github-project-automation github-project-automation bot moved this from Discussion Ongoing to Done in PR Backlog Jul 1, 2025
@github-actions github-actions bot mentioned this pull request Jul 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Schema mismatch when using @effect/ai-anthropic with the Anthropic API
1 participant