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(deps): update dependency @anthropic-ai/sdk to v0.26.1 #171

Merged
merged 1 commit into from
Aug 21, 2024

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Aug 21, 2024

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
@anthropic-ai/sdk 0.25.1 -> 0.26.1 age adoption passing confidence

Release Notes

anthropics/anthropic-sdk-typescript (@​anthropic-ai/sdk)

v0.26.1

Full Changelog: sdk-v0.26.0...sdk-v0.26.1

Chores

v0.26.0

Full Changelog: sdk-v0.25.2...sdk-v0.26.0

Features
  • api: add prompt caching beta (c920b77)
  • client: add streaming helpers (39abc26)
Chores

v0.25.2

Full Changelog: sdk-v0.25.1...sdk-v0.25.2

Chores

Configuration

📅 Schedule: Branch creation - "* 0-4 * * 3" (UTC), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

Copy link

bedrock debug - [puLL-Merge] - anthropics/anthropic-sdk-typescript@sdk-v0.25.1..sdk-v0.26.1

Description

This PR introduces prompt caching beta functionality to the Anthropic TypeScript SDK. It adds new API resources, types, and methods related to prompt caching, as well as updating existing components to support this feature.

Changes

Changes

  1. .github/CODEOWNERS:

    • Added comments explaining the purpose of the file.
  2. .release-please-manifest.json:

    • Updated version to 0.26.1.
  3. .stats.yml:

    • Increased configured endpoints from 2 to 3.
    • Updated OpenAPI spec URL.
  4. CHANGELOG.md:

    • Added entries for versions 0.26.1, 0.26.0, and 0.25.2.
    • New features include prompt caching beta and streaming helpers.
  5. api.md:

    • Added documentation for the new Beta PromptCaching API.
  6. package.json:

    • Updated version to 0.26.1.
  7. release-please-config.json:

    • Removed the "reviewers" field.
  8. scripts/mock:

    • Updated Prism CLI version to 5.8.5.
  9. src/index.ts:

    • Added beta property to the Anthropic class.
    • Exported new types and interfaces related to the Beta API.
  10. src/lib/PromptCachingBetaMessageStream.ts:

    • New file implementing the PromptCachingBetaMessageStream class for handling prompt caching beta message streams.
  11. src/resources/beta/:

    • New directory containing files for the Beta API implementation, including prompt caching functionality.
  12. src/resources/index.ts:

    • Added export for the new Beta API.
  13. src/resources/messages.ts:

    • Minor update to documentation link.
  14. src/version.ts:

    • Updated version to 0.26.1.
  15. tests/api-resources/beta/prompt-caching/messages.test.ts:

    • New test file for the prompt caching beta messages API.
  16. tests/api-resources/messages.test.ts:

    • Minor updates to test cases.

Possible Issues

No major issues identified. The changes appear to be well-structured and follow consistent patterns with the existing codebase.

Security Hotspots

No significant security concerns identified in this PR. The changes primarily involve adding new functionality and don't appear to introduce any obvious security risks.

Copy link

openai debug - [puLL-Merge] - anthropics/anthropic-sdk-typescript@sdk-v0.25.1..sdk-v0.26.1

Description

This pull request introduces several changes to the existing codebase, primarily focusing on the addition of new beta features related to prompt caching. It also includes updates and additions related to CI workflows, changelogs, versioning, configuration files, and project documentation.

Possible Issues

  • Potential for incomplete or improperly handled edge cases in the newly introduced beta APIs, particularly around streaming and error handling.
  • The changes in package.json and version.ts files reflect a version bump, but thorough testing and backward compatibility need to be ensured.

Security Hotspots

  • Secrets Exposure: Files like .github/workflows/create-releases.yml and .github/workflows/release-doctor.yml reference secrets such as ${{ secrets.ANTHROPIC_NPM_TOKEN || secrets.NPM_TOKEN }} and ${{ secrets.STAINLESS_API_KEY }}. Ensure these secrets are managed securely.
  • Streaming Data Handling: The streaming functionalities (PromptCachingBetaMessageStream) should be scrutinized to ensure they do not have vulnerabilities, such as injection attacks via the JSON data.
Changes

Changes

  • .github/CODEOWNERS

    • Added code owners configuration to automatically assign reviewers.
  • .github/workflows/create-releases.yml

    • Minor formatting change (added newline).
  • .github/workflows/handle-release-pr-title-edit.yml

    • Minor formatting change (added newline).
  • .github/workflows/release-doctor.yml

    • Minor formatting change (added newline).
  • .release-please-manifest.json

    • Updated project version from 0.25.1 to 0.26.1.
  • .stats.yml

    • Updated configured_endpoints from 2 to 3.
    • Updated openapi_spec_url.
  • CHANGELOG.md

    • Added entries for versions 0.26.1 and 0.26.0.
  • api.md

    • Added a new Beta section detailing the PromptCaching API and methods.
  • bin/check-release-environment

    • Minor formatting change (added newline).
  • package.json

    • Updated version from 0.25.1 to 0.26.1.
  • release-please-config.json

    • Removed reviewers configuration.
  • scripts/mock

    • Updated @stainless-api/prism-cli version from 5.8.4 to 5.8.5.
  • src/index.ts

    • Added API.Beta to Anthropic class.
  • src/lib/PromptCachingBetaMessageStream.ts

    • Added a new class PromptCachingBetaMessageStream for handling beta message streams.
  • src/resources/beta/beta.ts

    • Added new Beta class for grouping beta-related APIs.
  • src/resources/beta/index.ts

    • Added index file for beta resources.
  • src/resources/beta/prompt-caching/index.ts

    • Added index file for PromptCaching.
  • src/resources/beta/prompt-caching/messages.ts

    • Created detailed message handling API for PromptCaching.
  • src/resources/beta/prompt-caching/prompt-caching.ts

    • Defined PromptCaching class with message handling capabilities.
  • src/resources/index.ts

    • Added export for Beta from beta/beta.
  • src/resources/messages.ts

    • Updated references and links in comments.
  • src/version.ts

    • Updated version export to 0.26.1.
  • tests/api-resources/beta/prompt-caching/messages.test.ts

    • Added tests for PromptCaching messages API.
  • tests/api-resources/messages.test.ts

    • Updated test cases for message creation.

Copy link

anthropic debug - [puLL-Merge] - anthropics/anthropic-sdk-typescript@sdk-v0.25.1..sdk-v0.26.1

Description

This PR introduces a new beta feature called "prompt caching" to the Anthropic TypeScript SDK. It adds new API endpoints, types, and functionality related to caching prompts for improved performance.

Changes

Changes

  1. .github/CODEOWNERS:

    • Added explanatory comments and assigned the @anthropics/sdk team as code owners.
  2. .github/workflows/*:

    • Minor formatting changes to workflow files.
  3. .release-please-manifest.json and package.json:

    • Version bump from 0.25.1 to 0.26.1.
  4. .stats.yml:

    • Updated configured endpoints count and OpenAPI spec URL.
  5. CHANGELOG.md:

    • Added entries for versions 0.26.1, 0.26.0, and 0.25.2, detailing new features and changes.
  6. api.md:

    • Added documentation for the new Beta PromptCaching API.
  7. release-please-config.json:

    • Removed reviewers section.
  8. scripts/mock:

    • Updated prism-cli version to 5.8.5.
  9. src/index.ts:

    • Added beta property to the Anthropic class.
  10. src/lib/PromptCachingBetaMessageStream.ts:

    • New file implementing the PromptCachingBetaMessageStream class for handling streamed messages with prompt caching.
  11. src/resources/beta/*:

    • New files implementing the beta prompt caching feature, including new types and API endpoints.
  12. src/resources/index.ts:

    • Added export for the new Beta resource.
  13. src/resources/messages.ts:

    • Minor updates to documentation links.
  14. src/version.ts:

    • Updated version to 0.26.1.
  15. tests/api-resources/beta/prompt-caching/messages.test.ts:

    • Added tests for the new beta prompt caching messages API.
  16. tests/api-resources/messages.test.ts:

    • Minor updates to existing tests.

Possible Issues

None identified.

Security Hotspots

None identified.

@thypon thypon merged commit 9d1e558 into main Aug 21, 2024
8 checks passed
@thypon thypon deleted the renovate/anthropic-ai-sdk-0.x branch August 21, 2024 12:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant