fix: align AI menu order and labels (#14192)

This commit is contained in:
ssongliu
2026-10-26 14:03:40 +08:00
committed by GitHub
parent d7355f3ccc
commit fbf66766c2
34 changed files with 505 additions and 73 deletions
+5
View File
@@ -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 {
+9
View File
@@ -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;
+4
View File
@@ -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`,