feat: add multi-model support

This commit is contained in:
Yidadaa
2023-09-26 00:19:21 +08:00
parent b90dfb48ee
commit 5610f423d0
62 changed files with 1439 additions and 940 deletions

13
app/utils/log.ts Normal file
View File

@@ -0,0 +1,13 @@
export function createLogger(prefix = "") {
return {
log(...args: any[]) {
console.log(prefix, ...args);
},
error(...args: any[]) {
console.error(prefix, ...args);
},
warn(...args: any[]) {
console.warn(prefix, ...args);
},
};
}