Comments (8)
@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.
from continue.
To configure an API Key you can:
- Get an API key from https://platform.openai.com
- In Continue, type '/config' to open the file
~/.continue/config.py
- Paste the API key from step (1) into the
api_key
field in MaybeProxyOpenAI.
There are full instructions here
from continue.
I have configured the api-key inside config.py as shown below:
After restarting vscode, I get this error:
I'm sure the api-key is available.
from continue.
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.
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.
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.
@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)
- All UI controls in the tool window are disabled HOT 14
- [CON-213] Can't copy Continue text to clipboard on Windows HOT 1
- was having a REAL bad time! **imports on default config are bad** HOT 4
- JetBrains plugins cannot be used in an offline environment HOT 16
- Change "Async Timeout" for local models HOT 14
- Make the model selector combo box wider HOT 14
- Manually run server undetected on WSL HOT 3
- Continue is failing to start in Visual Studio HOT 9
- Link broken to default config.py HOT 1
- PostHog API Key Leaked HOT 3
- UnboundLocalError: local variable 'delta' referenced before assignment HOT 4
- /edit always tries to edit the first linked file you added with Ctrl+M HOT 3
- [CON-214] Error running binary in Intellij (PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target)
- Shows response, then crashes HOT 2
- Migrate `~/.continue/config.py` to XDG_CONFIG_HOME or `~/.config/continue/config.py` HOT 4
- Sessions not loading for VSCode Server HOT 7
- Timeout Error when using slower local models HOT 4
- prompt template for mistral HOT 5
- QuickTextEntry auto-focus HOT 5
- Support code auto complete HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from continue.