### What problem does this PR solve? add support for ollama Issue link:#221 ### Type of change - [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
@@ -7,3 +7,11 @@ export interface BaseState {
|
||||
pagination: Pagination;
|
||||
searchString: string;
|
||||
}
|
||||
|
||||
export interface IModalProps<T> {
|
||||
showModal?(): void;
|
||||
hideModal(): void;
|
||||
visible: boolean;
|
||||
loading?: boolean;
|
||||
onOk?(payload?: T): Promise<void> | void;
|
||||
}
|
||||
|
||||
6
web/src/interfaces/request/llm.ts
Normal file
6
web/src/interfaces/request/llm.ts
Normal file
@@ -0,0 +1,6 @@
|
||||
export interface IAddLlmRequestBody {
|
||||
llm_factory: string; // Ollama
|
||||
llm_name: string;
|
||||
model_type: string;
|
||||
api_base?: string; // chat|embedding|speech2text|image2text
|
||||
}
|
||||
Reference in New Issue
Block a user