Download src/provider/types.ts from bolikoto/zcode-api: direct link, hf CLI and curl.
- Browser
- Download file 816 Bytes
-
https://huggingface.co/spaces/bolikoto/zcode-api/resolve/main/src/provider/types.ts
- Command line
-
hf download hf://spaces/bolikoto/zcode-api/src/provider/types.ts
-
curl -L -o types.ts https://huggingface.co/spaces/bolikoto/zcode-api/resolve/main/src/provider/types.ts
816 Bytes
| /** | |
| * Provider and model type definitions. | |
| * @see .omo/plans/zcode-proxy.md Task 3 | |
| */ | |
| /** Supported provider identifiers. */ | |
| export type ProviderId = "zai" | "bigmodel"; | |
| /** Static provider definition with endpoint URLs. */ | |
| export interface ProviderDef { | |
| id: ProviderId; | |
| displayName: string; | |
| /** Base URL for Anthropic-format requests (no trailing slash). */ | |
| anthropicBaseURL: string; | |
| /** Base URL for OpenAI-format requests (no trailing slash). */ | |
| openaiBaseURL: string; | |
| /** Host for OAuth/API-key resolution business APIs. */ | |
| bizHost: string; | |
| } | |
| /** Model definition derived from the catalog. */ | |
| export interface ModelDef { | |
| id: string; | |
| name: string; | |
| contextWindow: number; | |
| maxOutputTokens?: number; | |
| /** Whether the model supports reasoning/thinking mode. */ | |
| reasoning?: boolean; | |
| } | |