Download packages/core/src/plugin/provider/alibaba.ts from SaylorTwift/opencode: direct link, hf CLI and curl.
- Browser
- Download file 426 Bytes
-
https://huggingface.co/SaylorTwift/opencode/resolve/main/packages/core/src/plugin/provider/alibaba.ts
- Command line
-
hf download hf://SaylorTwift/opencode/packages/core/src/plugin/provider/alibaba.ts
-
curl -L -o alibaba.ts https://huggingface.co/SaylorTwift/opencode/resolve/main/packages/core/src/plugin/provider/alibaba.ts
426 Bytes
| import { Effect } from "effect" | |
| import { define } from "../internal" | |
| export const AlibabaPlugin = define({ | |
| id: "alibaba", | |
| effect: Effect.fn(function* (ctx) { | |
| yield* ctx.aisdk.sdk( | |
| Effect.fn(function* (evt) { | |
| if (evt.package !== "@ai-sdk/alibaba") return | |
| const mod = yield* Effect.promise(() => import("@ai-sdk/alibaba")) | |
| evt.sdk = mod.createAlibaba(evt.options) | |
| }), | |
| ) | |
| }), | |
| }) | |