Download packages/plugin/src/v2/promise/aisdk.ts from SaylorTwift/opencode: direct link, hf CLI and curl.
- Browser
- Download file 476 Bytes
-
https://huggingface.co/SaylorTwift/opencode/resolve/main/packages/plugin/src/v2/promise/aisdk.ts
- Command line
-
hf download hf://SaylorTwift/opencode/packages/plugin/src/v2/promise/aisdk.ts
-
curl -L -o aisdk.ts https://huggingface.co/SaylorTwift/opencode/resolve/main/packages/plugin/src/v2/promise/aisdk.ts
476 Bytes
| import type { LanguageModelV3 } from "@ai-sdk/provider" | |
| import type { ModelV2Info } from "@opencode-ai/sdk/v2/types" | |
| import type { Hooks } from "./registration.js" | |
| export type AISDKHooks = Hooks<{ | |
| sdk: { | |
| readonly model: ModelV2Info | |
| readonly package: string | |
| readonly options: Record<string, any> | |
| sdk?: any | |
| } | |
| language: { | |
| readonly model: ModelV2Info | |
| readonly sdk: any | |
| readonly options: Record<string, any> | |
| language?: LanguageModelV3 | |
| } | |
| }> | |