Open Nevaehni opened 1 year ago
same error , if you can visit https://chat.openai.com/chat in your browser, i think this error is disapear
I can visit that link, but the error still persists.
Check this issue https://github.com/gragland/chatgpt-chrome-extension/issues/31 AdamSiyala's advice can fix this 404 problem. At least it worked for me.
You need to modify this part of code in server.js to write a correct model name
const gptApi = new ChatGPTAPI({ apiKey: process.env.OPENAI_API_KEY, completionParams: { model: "text-davinci-003", top_p: 0.8, }, maxResponseTokens: 300, }); console.log(gptApi);
@ajesuscode answer form the extension is diference of official https://github.com/gragland/chatgpt-chrome-extension/issues/40
Able to solve by changing initialization in server.js, this is for free users who want to use without API Key. Reverse-proxy
import { ChatGPTUnofficialProxyAPI } from "chatgpt";
const gptApi = new ChatGPTUnofficialProxyAPI ({
accessToken: process.env.OPENAI_ACCESS_TOKEN,
apiReverseProxyUrl: 'https://chat.duti.tech/api/conversation '
});
Users can generate using this URL and add token into .env file
Able to solve by changing initialization in server.js, this is for free users who want to use without API Key. Reverse-proxy
const gptApi = new ChatGPTUnofficialProxyAPI ({ accessToken: process.env.OPENAI_ACCESS_TOKEN, apiReverseProxyUrl: 'https://chat.duti.tech/api/conversation ' });
Users can generate using this URL and add token into .env file
whitch module is the ChatGPTUnofficialProxyAPI import from?
import { ChatGPTUnofficialProxyAPI } from "chatgpt";
Able to solve by changing initialization in server.js, this is for free users who want to use without API Key. Reverse-proxy
import { ChatGPTUnofficialProxyAPI } from "chatgpt"; const gptApi = new ChatGPTUnofficialProxyAPI ({ accessToken: process.env.OPENAI_ACCESS_TOKEN, apiReverseProxyUrl: 'https://chat.duti.tech/api/conversation ' });
Users can generate using this URL and add token into .env file
v4.7.2 works
@ajesuscode answer form the extension is diference of official #40
Didn't get it)) Can you explain widely))?
Able to solve by changing initialization in server.js, this is for free users who want to use without API Key. Reverse-proxy
import { ChatGPTUnofficialProxyAPI } from "chatgpt"; const gptApi = new ChatGPTUnofficialProxyAPI ({ accessToken: process.env.OPENAI_ACCESS_TOKEN, apiReverseProxyUrl: 'https://chat.duti.tech/api/conversation ' });
Users can generate using this URL and add token into .env file
It's not working for me, can you please explain a bit
$ node --trace-warnings server.js
ChatGPTError: ChatGPT error 404: { "error": { "message": "That model does not exist", "type": "invalid_request_error", "param": null, "code": null } }
statusCode: 404, statusText: 'Not Found', [cause]: Response {
} }
Node.js v18.8.0