mirror of
https://github.com/ChatGPTNextWeb/NextChat.git
synced 2026-03-03 08:34:53 +08:00
feat: add multi-model support
This commit is contained in:
13
app/utils/log.ts
Normal file
13
app/utils/log.ts
Normal 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);
|
||||
},
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user