Buckets:
| import { Effect } from "effect" | |
| import { PluginV2 } from "../../plugin" | |
| export const CerebrasPlugin = PluginV2.define({ | |
| id: PluginV2.ID.make("cerebras"), | |
| effect: Effect.gen(function* () { | |
| return { | |
| "catalog.transform": Effect.fn(function* (ctx) { | |
| for (const item of ctx.provider.list()) { | |
| if (item.provider.api.type !== "aisdk") continue | |
| if (item.provider.api.package !== "@ai-sdk/cerebras") continue | |
| ctx.provider.update(item.provider.id, (provider) => { | |
| provider.request.headers["X-Cerebras-3rd-Party-Integration"] = "opencode" | |
| }) | |
| } | |
| }), | |
| "aisdk.sdk": Effect.fn(function* (evt) { | |
| if (evt.package !== "@ai-sdk/cerebras") return | |
| const mod = yield* Effect.promise(() => import("@ai-sdk/cerebras")) | |
| evt.sdk = mod.createCerebras(evt.options) | |
| }), | |
| } | |
| }), | |
| }) | |
Xet Storage Details
- Size:
- 879 Bytes
- Xet hash:
- e11777a86fd3e1db35f2914e1bfa6c4afcaeb9edd54f9dfe30d912fda463da97
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.