Giter VIP home page Giter VIP logo

Comments (8)

sestinj avatar sestinj commented on June 2, 2024

@xjy198903 This is potentially because of geographic location. We are only serving the free usage server from the US—is it possible that this is the cause? One solution might be to use your own OpenAI key

Also, does this mean that your previous problem here (#463) has been resolved?

from continue.

xjy198903 avatar xjy198903 commented on June 2, 2024

from continue.

sestinj avatar sestinj commented on June 2, 2024

To configure an API Key you can:

  1. Get an API key from https://platform.openai.com
  2. In Continue, type '/config' to open the file ~/.continue/config.py
  3. Paste the API key from step (1) into the api_key field in MaybeProxyOpenAI.

There are full instructions here

from continue.

xjy198903 avatar xjy198903 commented on June 2, 2024

I have configured the api-key inside config.py as shown below:
image

After restarting vscode, I get this error:
image
I'm sure the api-key is available.

from continue.

sestinj avatar sestinj commented on June 2, 2024

Can you make sure the API key is set for both models (default and medium)?

If the issue persists after doing this, my guess would be that there is some VPN / firewall / etc. blocking access to OpenAI

from continue.

xjy198903 avatar xjy198903 commented on June 2, 2024

Can you make sure the API key is set for both models (default and medium)?

yes. and The problem remains.I'm going to give it up

from continue.

TyDunn avatar TyDunn commented on June 2, 2024

I'm going to give it up

@xjy198903 Can we hop on a call to debug this? We can't let you give up :)

from continue.

sestinj avatar sestinj commented on June 2, 2024

@xjy198903 I'm very sorry that this turned out to be such a frustrating experience - I realize that it is an entire month later, but we've been working on making this experience better. I believe that your problem can be solved by using the OpenAI class, where your config.py would look like this:

...
config=ContinueConfig(
  ...
  models=Models(
    default=OpenAI(api_key="<API_KEY>", model="gpt-4"),
    summarize=OpenAI(api_key="<API_KEY>", model="gpt-3.5-turbo")
  )
)

But we've also seriously upgraded our UI so that you can do all of this without having to touch the config. If you click the "+" button in the bottom left corner of the screen, you can select the OpenAI option at the top, enter your API key, select a model, and you should be completely good to go.

If you do want to use the config file, we've also made sure that you now get intellisense, so you don't have to guess at which properties or imports exist. I hope you're willing to take another look at Continue and that we can help you out - please let us know if there's anything else we can do!

from continue.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.