gencay / vscode-chatgpt

An unofficial Visual Studio Code - OpenAI ChatGPT integration
ISC License
3.5k stars 760 forks source link

ERR api-request-failed #258

Open Betavion opened 10 months ago

Betavion commented 10 months ago

Describe the Bug

I'm using custom api, settings are as follows:

"chatgpt.gpt3.apiKey": "sk-qExxx",
"chatgpt.gpt3.apiBaseUrl": "https://api.132006.xyz",
"chatgpt.gpt3.model": "gpt-4-1106-preview",

The error output looks like this:

INFO api-request-sent chatgpt.model:gpt-4-1106-preview chatgpt.questionCounter:1 {"chatgpt.command":"freeText","chatgpt.hasCode":"false","chatgpt.hasPreviousAnswer":"false"}
ERR api-request-failed chatgpt.model:gpt-4-1106-preview chatgpt.questionCounter:1}

I want to know what's wrong and how to fix it

Please tell us if you have customized any of the extension settings or whether you are using the defaults.

"chatgpt.gpt3.apiKey": "sk-qExxx",
"chatgpt.gpt3.apiBaseUrl": "https://api.132006.xyz",
"chatgpt.gpt3.model": "gpt-4-1106-preview",

Additional context

No response

Betavion commented 10 months ago

I'm sure the api is ok cause it functions normally in other apps

benzntech commented 10 months ago

239 ChatGPT for VS Code deprecated & open-sourced. Please find the alternative link in README.