mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2026-10-29 16:05:34 +00:00
fix: align AI menu order and labels (#14192)
This commit is contained in:
@@ -1,6 +1,11 @@
|
||||
import { ReqPage } from '.';
|
||||
|
||||
export namespace AI {
|
||||
export interface ModelAccountSync {
|
||||
id: number;
|
||||
modelAccountBaseURLType: 'container' | 'localhost' | 'systemIP' | 'custom';
|
||||
modelAccountBaseURL: string;
|
||||
}
|
||||
export type AgentType = 'openclaw' | 'copaw' | 'hermes-agent' | 'deepseek-harness' | 'octop';
|
||||
|
||||
export interface OllamaModelInfo {
|
||||
|
||||
@@ -136,6 +136,7 @@ export namespace App {
|
||||
}
|
||||
|
||||
export interface AppInstall {
|
||||
syncModelAccount?: boolean;
|
||||
modelAccountBaseURLType?: string;
|
||||
modelAccountBaseURL?: string;
|
||||
appDetailId: number;
|
||||
@@ -229,6 +230,8 @@ export namespace App {
|
||||
name: string;
|
||||
version: string;
|
||||
isExist: boolean;
|
||||
modelAccountBaseURLType: string;
|
||||
modelAccountBaseURL: string;
|
||||
app: string;
|
||||
status: string;
|
||||
createdAt: string;
|
||||
@@ -303,6 +306,12 @@ export namespace App {
|
||||
}
|
||||
|
||||
export interface AppConfig {
|
||||
appKey: string;
|
||||
name: string;
|
||||
httpPort: number;
|
||||
syncModelAccount: boolean;
|
||||
modelAccountBaseURLType: string;
|
||||
modelAccountBaseURL: string;
|
||||
params: InstallParams[];
|
||||
rawCompose?: string;
|
||||
cpuQuota: number;
|
||||
|
||||
@@ -22,6 +22,10 @@ export const loadOllamaModel = (name: string) => {
|
||||
export const syncOllamaModel = () => {
|
||||
return http.post<Array<AI.OllamaModelDropInfo>>(`/ai/ollama/model/sync`);
|
||||
};
|
||||
|
||||
export const syncOllamaModelAccount = (req: AI.ModelAccountSync) => {
|
||||
return http.post('/ai/ollama/account/sync', req);
|
||||
};
|
||||
export const closeOllamaModel = (name: string, currentNode?: string) => {
|
||||
return http.post(
|
||||
`/ai/ollama/close`,
|
||||
|
||||
Reference in New Issue
Block a user