@lobehub/chat
Version:
Lobe Chat - an open-source, high-performance chatbot framework that supports speech synthesis, multimodal, and extensible Function Call plugin system. Supports one-click free deployment of your private ChatGPT/LLM web application.
59 lines (49 loc) • 1.16 kB
text/typescript
interface ModelPricing {
completion: string;
image: string;
prompt: string;
request: string;
}
interface ModelArchitecture {
instruct_type: string | null;
modality: string;
tokenizer: string;
}
interface ModelTopProvider {
is_moderated: boolean;
max_completion_tokens: number | null;
}
export interface OpenRouterModelCard {
architecture: ModelArchitecture;
context_length: number;
created: number;
description: string;
id: string;
name: string;
per_request_limits: any | null;
pricing: ModelPricing;
top_provider: ModelTopProvider;
}
interface OpenRouterModelEndpoint {
supports_reasoning?: boolean;
supports_tool_parameters?: boolean;
}
export interface OpenRouterModelExtraInfo {
endpoint?: OpenRouterModelEndpoint;
slug: string;
}
interface OpenRouterOpenAIReasoning {
effort: 'high' | 'medium' | 'low';
exclude?: boolean;
}
interface OpenRouterAnthropicReasoning {
exclude?: boolean;
max_tokens: number;
}
interface OpenRouterCommonReasoning {
exclude?: boolean;
}
export type OpenRouterReasoning =
| OpenRouterOpenAIReasoning
| OpenRouterAnthropicReasoning
| OpenRouterCommonReasoning;