feat: bym.js support multiple models

This commit is contained in:
ikechan8370 2025-02-03 00:07:26 +08:00
parent f7030e8427
commit 69ab6dcd28
12 changed files with 471 additions and 668 deletions

View file

@ -1,5 +1,7 @@
{
"compilerOptions": {
"module": "es2020"
"module": "es2020",
"moduleResolution": "node",
"esModuleInterop": true
}
}
}

View file

@ -1,7 +1,8 @@
// @ts-ignore
import Keyv from 'keyv'
export type Role = 'user' | 'assistant' | 'system' | 'function'
// @ts-ignore
import fetch from 'node-fetch'
export type FetchFn = typeof fetch