| |
| |
|
|
| 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;
|
| }
|
|
|
| |
| |
|
|
| 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;
|
| };
|
| }
|
|
|