Buckets:
| import { Effect } from "effect" | |
| import { PluginV2 } from "../../plugin" | |
| export const AnthropicPlugin = PluginV2.define({ | |
| id: PluginV2.ID.make("anthropic"), | |
| effect: Effect.gen(function* () { | |
| return { | |
| "catalog.transform": Effect.fn(function* (evt) { | |
| for (const item of evt.provider.list()) { | |
| if (item.provider.api.type !== "aisdk") continue | |
| if (item.provider.api.package !== "@ai-sdk/anthropic") continue | |
| evt.provider.update(item.provider.id, (provider) => { | |
| provider.request.headers["anthropic-beta"] = | |
| "interleaved-thinking-2025-05-14,fine-grained-tool-streaming-2025-05-14" | |
| }) | |
| } | |
| }), | |
| "aisdk.sdk": Effect.fn(function* (evt) { | |
| if (evt.package !== "@ai-sdk/anthropic") return | |
| const mod = yield* Effect.promise(() => import("@ai-sdk/anthropic")) | |
| evt.sdk = mod.createAnthropic(evt.options) | |
| }), | |
| } | |
| }), | |
| }) | |
Xet Storage Details
- Size:
- 943 Bytes
- Xet hash:
- f5941b3fbbfc175db4c2d9f49ad14e408ffde0d623363de4fb6853efa9ce5a11
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.