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

@ -59,7 +59,7 @@ Currently, this project is only functional with the `text-davinci-003` model.
## How to Get Started ##
> **Warning**
> Working on easy startup code. Still in development.
> Working on easy startup/config code. Still in development.
<!-- ## License

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 = {