update schema for bing options

This commit is contained in:
Daniel Avila 2023-02-19 21:06:21 -05:00
parent ac2e897709
commit b4e22936ba
5 changed files with 53 additions and 44 deletions

View file

@ -20,7 +20,7 @@ const davinciOptions = {
const askClient = async ({ model, text, progressCallback, convo }) => {
// const clientOptions = model === 'chatgpt' ? proxyOptions : davinciOptions;
const ChatGPTClient = (await import('@waylaidwanderer/chatgpt-api')).default;
const client = new ChatGPTClient(process.env.CHATGPT_TOKEN, davinciOptions, {
const client = new ChatGPTClient(process.env.OPENAI_KEY, davinciOptions, {
store: new KeyvFile({ filename: 'cache.json' })
});
let options = {