feat 存档

This commit is contained in:
2026-03-21 20:21:37 +08:00
parent 21965ef95e
commit 86c63292b2
39 changed files with 8881 additions and 51 deletions

View File

@@ -0,0 +1,42 @@
export namespace ai {
export class Message {
role: string;
content: string;
static createFrom(source: any = {}) {
return new Message(source);
}
constructor(source: any = {}) {
if ('string' === typeof source) source = JSON.parse(source);
this.role = source["role"];
this.content = source["content"];
}
}
}
export namespace backend {
export class ModelConfig {
key: string;
model: string;
in: number;
out: number;
static createFrom(source: any = {}) {
return new ModelConfig(source);
}
constructor(source: any = {}) {
if ('string' === typeof source) source = JSON.parse(source);
this.key = source["key"];
this.model = source["model"];
this.in = source["in"];
this.out = source["out"];
}
}
}