cherry-studio/.yarn/patches
SuYao 4c0167cc03
Feat/vertex-claude-support (#7564)
* feat(migrate): add default settings for assistants during migration

- Introduced a new migration step to assign default settings for assistants that lack configuration.
- Default settings include temperature, context count, and other parameters to ensure consistent behavior across the application.

* chore(store): increment version number to 115 for persisted reducer

* feat(vertex-sdk): integrate Anthropic Vertex SDK and add access token retrieval

- Added support for the new `@anthropic-ai/vertex-sdk` in the project.
- Introduced a new IPC channel `VertexAI_GetAccessToken` to retrieve access tokens.
- Implemented `getAccessToken` method in `VertexAIService` to handle service account authentication.
- Updated the `IpcChannel` enum and related IPC handlers to support the new functionality.
- Enhanced the `VertexAPIClient` to utilize the `AnthropicVertexClient` for model handling.
- Refactored existing code to accommodate the integration of the Vertex SDK and improve modularity.

* feat(vertex-ai): enhance VertexAI settings and API host management

- Added a new method to format the API host URL in both AnthropicVertexClient and VertexAPIClient.
- Updated getBaseURL methods to utilize the new formatting logic.
- Enhanced VertexAISettings component to include an input for API host configuration, with help text for user guidance.
- Updated localization files to include new help text for the API host field in multiple languages.

* fix(vertex-sdk): update baseURL handling and patch dependencies

- Refactored baseURL assignment in AnthropicVertexClient to ensure it defaults to undefined when the URL is empty.
- Updated yarn.lock to reflect changes in dependency resolution and checksum for @anthropic-ai/vertex-sdk patch.

* refactor(VertexAISetting): use provider.id rather than provider

* refactor: improve API host formatting in AnthropicVertexClient

- Updated the `formatApiHost` method to streamline host URL handling.
- Introduced a helper function to determine if the original host should be used based on its format.
- Ensured consistent appending of the `/v1/` path for valid API requests.

* fix: handle empty host in AnthropicVertexClient

- Added a check in the `getBaseURL` method to return the host if it is empty, preventing potential errors.
- Included a console log for the base URL to aid in debugging and verification of the URL formatting.

* feat(AnthropicVertexClient): add logging for authentication errors and mock client in tests

- Introduced logging functionality in AnthropicVertexClient to replace console.error with logger service for better error tracking.
- Added mock implementation for AnthropicVertexClient in tests to enhance testing capabilities.
- Updated package.json to include the @aws-sdk/client-s3 dependency.

* feat(tests): add comprehensive tests for client compatibility types

- Introduced a new test file to validate compatibility types for various API clients including OpenAI, Anthropic, Gemini, Aihubmix, NewAPI, and Vertex.
- Implemented mock services to facilitate testing and ensure isolation of client behavior.
- Added tests for both direct API clients and decorator pattern clients, ensuring correct compatibility type returns.
- Enhanced middleware compatibility logic tests to verify correct identification of compatible clients.

---------

Co-authored-by: one <wangan.cs@gmail.com>
2025-07-24 23:46:32 +08:00
..
@anthropic-ai-vertex-sdk-npm-0.11.4-c19cb41edb.patch Feat/vertex-claude-support (#7564) 2025-07-24 23:46:32 +08:00
@google-genai-npm-1.0.1-e26f0f9af7.patch style: set eol to lf, code formatting (#7923) 2025-07-08 09:50:33 +08:00
@langchain-core-npm-0.3.44-41d5c3cb0a.patch fix: update TikToken implementation and remove js-tiktoken dependency 2025-05-28 08:55:52 +08:00
@langchain-openai-npm-0.3.16-e525b59526.patch feat: add baidu cloud provider 2025-02-07 16:47:29 +08:00
@tavily-core-npm-0.3.1-fe69bf2bea.patch chore: Update Tavily core package and remove js-tiktoken dependency 2025-02-23 11:01:30 +08:00
antd-npm-5.24.7-356a553ae5.patch style(antd): Optimize antd components through patch method (#7683) 2025-06-30 20:40:32 +08:00
app-builder-lib-npm-26.0.15-360e5b0476.patch fix: update app-builder-lib patch and adjust minimumSystemVersion handling (#7197) 2025-06-14 19:39:28 +08:00
epub-npm-1.3.0-8325494ffe.patch patch epub: replace zipfile with zipread 2025-03-13 18:01:39 +08:00
libsql-npm-0.4.7-444e260fb1.patch build: Add support for Windows ARM64 platform (#3431) 2025-04-06 09:35:08 +08:00
openai-npm-5.1.0-0e7b3ccb07.patch fix: check if embedding is base64 encoded before convert it to float … (#7014) 2025-06-09 19:46:17 +08:00
pdf-parse-npm-1.1.1-04a6109b2a.patch feat: knowledge base 2024-12-19 09:24:20 +08:00
pkce-challenge-npm-4.1.0-fbc51695a3.patch refactor: mcp service 2025-03-28 04:24:10 +08:00