Buckets:
| import { Effect } from "effect" | |
| import { PluginV2 } from "../../plugin" | |
| import { ProviderV2 } from "../../provider" | |
| export const XAIPlugin = PluginV2.define({ | |
| id: PluginV2.ID.make("xai"), | |
| effect: Effect.gen(function* () { | |
| return { | |
| "aisdk.sdk": Effect.fn(function* (evt) { | |
| if (evt.package !== "@ai-sdk/xai") return | |
| const mod = yield* Effect.promise(() => import("@ai-sdk/xai")) | |
| evt.sdk = mod.createXai(evt.options) | |
| }), | |
| "aisdk.language": Effect.fn(function* (evt) { | |
| if (evt.model.providerID !== ProviderV2.ID.make("xai")) return | |
| evt.language = evt.sdk.responses(evt.model.api.id) | |
| }), | |
| } | |
| }), | |
| }) | |
Xet Storage Details
- Size:
- 670 Bytes
- Xet hash:
- 55a415bff238ff6fcd73d35b58a9ceb357354aa387f41c1077e1426e19da83da
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.