Download src/types/provider.ts from rais133/omniroute: direct link, hf CLI and curl.
- Browser
- Download file 791 Bytes
-
https://huggingface.co/spaces/rais133/omniroute/resolve/main/src/types/provider.ts
- Command line
-
hf download hf://spaces/rais133/omniroute/src/types/provider.ts
-
curl -L -o provider.ts https://huggingface.co/spaces/rais133/omniroute/resolve/main/src/types/provider.ts
791 Bytes
| /** | |
| * Provider connection — a configured cloud AI provider account. | |
| */ | |
| export interface ProviderConnection { | |
| id: string; | |
| provider: string; | |
| label: string; | |
| url: string; | |
| apiKey?: string; | |
| oauthToken?: string; | |
| oauthRefreshToken?: string; | |
| oauthExpiresAt?: string; | |
| isActive: boolean; | |
| priority: number; | |
| createdAt: string; | |
| updatedAt: string; | |
| } | |
| /** | |
| * Provider node — a specific endpoint within a provider. | |
| */ | |
| export interface ProviderNode { | |
| id: string; | |
| connectionId: string; | |
| provider: string; | |
| model: string; | |
| baseUrl: string; | |
| isActive: boolean; | |
| priority: number; | |
| } | |
| export interface ModelCooldownErrorPayload { | |
| error: { | |
| message: string; | |
| type: "rate_limit_error"; | |
| code: "model_cooldown"; | |
| model?: string; | |
| reset_seconds: number; | |
| }; | |
| } | |