mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-09-07 01:09:54 +08:00
feat(core): add anthropic provider (#11911)
Close [AI-40](https://linear.app/affine-design/issue/AI-40). ### What changed? - Add anthropic provider. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Added support for Anthropic as a new provider option in Copilot, enabling integration with Anthropic's text generation models. - Users can now configure Anthropic provider settings, including API key management, through the admin interface. - **Chores** - Updated dependencies to include the Anthropic SDK for backend operations. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
@@ -889,6 +889,7 @@ __metadata:
|
||||
"@affine-tools/utils": "workspace:*"
|
||||
"@affine/graphql": "workspace:*"
|
||||
"@affine/server-native": "workspace:*"
|
||||
"@ai-sdk/anthropic": "npm:^1.2.10"
|
||||
"@ai-sdk/google": "npm:^1.2.10"
|
||||
"@ai-sdk/openai": "npm:^1.3.18"
|
||||
"@ai-sdk/perplexity": "npm:^1.1.6"
|
||||
@@ -1052,6 +1053,18 @@ __metadata:
|
||||
languageName: unknown
|
||||
linkType: soft
|
||||
|
||||
"@ai-sdk/anthropic@npm:^1.2.10":
|
||||
version: 1.2.10
|
||||
resolution: "@ai-sdk/anthropic@npm:1.2.10"
|
||||
dependencies:
|
||||
"@ai-sdk/provider": "npm:1.1.3"
|
||||
"@ai-sdk/provider-utils": "npm:2.2.7"
|
||||
peerDependencies:
|
||||
zod: ^3.0.0
|
||||
checksum: 10/4701f83886592e635fab36d8026e7b764f444f40a2c636340fcf267d8d1c846c7ee710b548a782cec6ecafac1d967be74d4e87d6f6f780b0725a1a580cab77d3
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@ai-sdk/google@npm:^1.2.10":
|
||||
version: 1.2.11
|
||||
resolution: "@ai-sdk/google@npm:1.2.11"
|
||||
|
||||
Reference in New Issue
Block a user