mirror of
https://github.com/open-webui/open-webui
synced 2025-06-26 18:26:48 +00:00
Fix type errors.
This commit is contained in:
@@ -52,20 +52,39 @@ type BaseModel = {
|
||||
id: string;
|
||||
name: string;
|
||||
info?: ModelConfig;
|
||||
owned_by: 'ollama' | 'openai';
|
||||
};
|
||||
|
||||
export interface OpenAIModel extends BaseModel {
|
||||
owned_by: 'openai';
|
||||
external: boolean;
|
||||
source?: string;
|
||||
}
|
||||
|
||||
export interface OllamaModel extends BaseModel {
|
||||
owned_by: 'ollama';
|
||||
details: OllamaModelDetails;
|
||||
size: number;
|
||||
description: string;
|
||||
model: string;
|
||||
modified_at: string;
|
||||
digest: string;
|
||||
ollama?: {
|
||||
name?: string;
|
||||
model?: string;
|
||||
modified_at: string;
|
||||
size?: number;
|
||||
digest?: string;
|
||||
details?: {
|
||||
parent_model?: string;
|
||||
format?: string;
|
||||
family?: string;
|
||||
families?: string[];
|
||||
parameter_size?: string;
|
||||
quantization_level?: string;
|
||||
};
|
||||
urls?: number[];
|
||||
};
|
||||
}
|
||||
|
||||
type OllamaModelDetails = {
|
||||
|
||||
Reference in New Issue
Block a user