proxy server is down

This commit is contained in:
Daniel Avila 2023-02-14 18:34:46 -05:00
parent e520973203
commit 7d7a4dd905
2 changed files with 3 additions and 3 deletions

View file

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