mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-07-12 14:45:42 +08:00
Feat: tenant llm provider (#14595)
### What problem does this PR solve? Python implementation of the Go-based model_provider API suite. ### Type of change - [x] New Feature (non-breaking change which adds functionality) --------- Co-authored-by: bill <yibie_jingnian@163.com>
This commit is contained in:
@@ -40,3 +40,41 @@ export interface Llm {
|
||||
status: '0' | '1';
|
||||
used_token: number;
|
||||
}
|
||||
|
||||
export interface IAvailableProvider {
|
||||
name: string;
|
||||
model_types: string[];
|
||||
url: { default?: string; [key: string]: string | undefined };
|
||||
}
|
||||
|
||||
export interface IProviderInstance {
|
||||
api_key: string;
|
||||
id: string;
|
||||
instance_name: string;
|
||||
provider_id: string;
|
||||
region: string;
|
||||
status: string;
|
||||
}
|
||||
export interface IAddedModel {
|
||||
model_type: string[];
|
||||
name: string;
|
||||
provider_id: string;
|
||||
provider_name: string;
|
||||
instance_id: string;
|
||||
instance_name: string;
|
||||
}
|
||||
|
||||
export interface IInstanceModel {
|
||||
max_tokens: number;
|
||||
model_type: string[];
|
||||
name: string;
|
||||
status: string;
|
||||
}
|
||||
|
||||
export interface IDefaultModel {
|
||||
enable: boolean;
|
||||
model_instance: string;
|
||||
model_name: string;
|
||||
model_provider: string;
|
||||
model_type: string;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user