diff options
| author | Dax Raad <[email protected]> | 2025-05-30 20:47:56 -0400 |
|---|---|---|
| committer | Dax Raad <[email protected]> | 2025-05-30 20:48:36 -0400 |
| commit | f3da73553c45f17e04b1e77cb13eb0fca714d1bd (patch) | |
| tree | a24317a19e1ab2a89da50db669dc6894f15d00d1 /js/src/provider | |
| parent | 9a26b3058ffc1023e5c7e54b6d571c903d15888e (diff) | |
| download | opencode-f3da73553c45f17e04b1e77cb13eb0fca714d1bd.tar.gz opencode-f3da73553c45f17e04b1e77cb13eb0fca714d1bd.zip | |
sync
Diffstat (limited to 'js/src/provider')
| -rw-r--r-- | js/src/provider/provider.ts | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/js/src/provider/provider.ts b/js/src/provider/provider.ts deleted file mode 100644 index d4719ffbb..000000000 --- a/js/src/provider/provider.ts +++ /dev/null @@ -1,35 +0,0 @@ -import z from "zod"; - -export namespace Provider { - export const Model = z - .object({ - id: z.string(), - name: z.string().optional(), - cost: z.object({ - input: z.number(), - inputCached: z.number(), - output: z.number(), - outputCached: z.number(), - }), - contextWindow: z.number(), - maxOutputTokens: z.number().optional(), - attachment: z.boolean(), - reasoning: z.boolean().optional(), - }) - .openapi({ - ref: "Provider.Model", - }); - export type Model = z.output<typeof Model>; - - export const Info = z - .object({ - id: z.string(), - name: z.string(), - options: z.record(z.string(), z.any()).optional(), - models: Model.array(), - }) - .openapi({ - ref: "Provider.Info", - }); - export type Info = z.output<typeof Info>; -} |
