JudiniLabs / code-gpt-docs

Docusaurus page
https://code-gpt-docs.vercel.app
MIT License
565 stars 58 forks source link

Cannot connect to OpenAI #317

Open diegoandresdiazespinoza opened 1 month ago

diegoandresdiazespinoza commented 1 month ago

I installed the plugin in VS Code, my config is for VSCode and env is

Version: 1.91.1 (user setup) Commit: f1e16e1e6214d7c44d078b1f0607b2388f29d729 Date: 2024-07-09T22:06:49.809Z Electron: 29.4.0 ElectronBuildId: 9728852 Chromium: 122.0.6261.156 Node.js: 20.9.0 V8: 12.2.281.27-electron.0 OS: Windows_NT x64 10.0.22631 (Windows 11)

At first I connected my account using Google Auth it says i am connected showing my avatar in the plugin upper right. I try to select OpenAI as the provider, it asked me for my key and then Paste button and ctrl-v didnt work at all. I clear the editor history, uninstall the plugin, install again and now it appears as "connected" but when trying to "/Explain" it says I am not connected and appears a button for disconnect, when i press nothing happen.

Code_YbDNZkZ8wc Code_FSeXhdVlFG Code_xDk0GeBiGC

PilarHidalgo commented 1 month ago

Hi @diegoandresdiazespinoza , I'm sorry to hear that you're having trouble with the connection. Let's try to troubleshoot this issue.

First, please ensure that you have the correct API key from OpenAI. You can find this by logging into your OpenAI account and navigating to the API Keys page.

Once you have your API key, follow these steps:

-Go to VSCode and choose OpenAI as Provider. -Click on the provider's button to set the connection. -Paste your API key in the provided field and click on Connect.

There is no need to log in with a CodeGPT account to use other providers aside from CodeGPT Plus.

ajosegun commented 1 month ago
image image

Same issue here.

Where do I choose OpenAI as Provider?

MacBook 2021 Pro

Adel242 commented 1 month ago

Captura de pantalla 2024-07-31 175720

On the home page, you will find a dropdown menu where a list of providers is displayed. If you use the scroll bar, you can scroll down until you find the OpenAI provider.

In addition, the image you attached refers to the autocomplete function, which aims to complete your code by providing you with suggestions on how to continue on each line. This function allows you to select AI models, but it is not the same as using them as a provider for your chat conversations. I hope this information is useful to you. If you have any questions or queries, do not hesitate to get in touch with us.

ajosegun commented 1 month ago

I want to use OpenAI for autocomplete function but it is not in the list.