Skip to content

Commit c40e204

Browse files
committed
GPT3.5 Turbo model support
1 parent c0a7857 commit c40e204

File tree

4 files changed

+51
-6
lines changed

4 files changed

+51
-6
lines changed

CHANGELOG.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,18 @@
22

33
All notable changes to the "vscode-chatgpt" extension will be documented in this file.
44

5+
## [3.9.0] - 2022-03-02
6+
7+
### 📢 New features - Official ChatGPT API / GPT 3.5 Turbo support
8+
9+
- You can now use the following official ChatGPT APIs from OpenAI:
10+
- "OpenAI API Key - gpt-3.5-turbo"
11+
- "OpenAI API Key - gpt-3.5-turbo-0301"
12+
- 'gpt-3.5-turbo' model is now the default model used.
13+
- Make sure to update your model setting in your 'settings.json' if you previously used a different model.
14+
15+
<img src="https://raw.githubusercontent.com/gencay/vscode-chatgpt/main/images/gpt35-model.png">
16+
517
## [3.8.0] - 2022-02-27
618

719
- Added stop generating responses feature.

README.md

Lines changed: 39 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,22 @@
1313
</a>
1414
</p>
1515

16-
## 📢 New features - ChatGPT conversation history, Stop responding feature
16+
## 📢 New features - Official ChatGPT API / GPT 3.5 Turbo support
1717

1818
<details open>
19+
<summary>🚀 Official ChatGPT API / GPT 3.5 Turbo support</summary>
20+
21+
- You can now use the following official ChatGPT APIs from OpenAI:
22+
- "OpenAI API Key - gpt-3.5-turbo"
23+
- "OpenAI API Key - gpt-3.5-turbo-0301"
24+
- 'gpt-3.5-turbo' model is now the default model used.
25+
- Make sure to update your model setting in your 'settings.json' if you previously used a different model.
26+
27+
<img src="https://raw.githubusercontent.com/gencay/vscode-chatgpt/main/images/gpt35-model.png">
28+
29+
</details>
30+
31+
<details>
1932
<summary>✋ Stop generating feature + Disabling autoscroll</summary>
2033

2134
- Added stop generating responses feature.
@@ -27,7 +40,7 @@
2740

2841
</details>
2942

30-
<details open>
43+
<details>
3144
<summary>💬💬 Access all of your ChatGPT conversation history</summary>
3245

3346
- You can view top 50 recent conversations
@@ -47,8 +60,8 @@
4760

4861
# ChatGPT as your copilot to level up your developer experience
4962

63+
- ➕ ChatGPT Turbo support with GPT3.5 models
5064
- 📃 Access your ChatGPT web conversation history within VS Code. Switch between past conversations, continue them, or export all conversations to markdown.
51-
- ➕ ChatGPT Plus support.
5265
- 🔥 Streaming conversation support for both browser and API Key method. Stop the response to save your tokens.
5366
- 📝 Create files/projects or fix your code with one click or with keyboard shortcuts.
5467
- 🤖 Zero-Config setup. Simply login to OpenAI as usual. Or use OpenAI's official GPT3 APIs.
@@ -228,12 +241,32 @@ Format examples:
228241
# Troubleshooting
229242

230243
- It's possible that OpenAI systems may experience issues responding to your queries due to high-traffic from time to time.
231-
- If you get `404 NotFound` error, it means one of the parameters you provided is unknown (i.e. `chatgpt.gpt3.model`). Most likely switching to default `model` in your settings would fix this issue.
232-
- If you get `400 BadRequest` error with API Key based method, it means that your conversation's length is more than GPT/Codex models can handle. Clear your conversation history with `ChatGPT: Clear conversation` command and retry sending your prompt.
233-
- If you get `ChatGPT is at capacity right now` during autologin, the extension will refresh the page every 2 seconds until you see the login page. Refreshing may help in some cases, when there is a queue. This is unfortunately out of this extension's control. If, even after refresh, OpenAI shows capacity error, the browser will close automatically.
234244
- If you get `ChatGPTAPI error 429`, it means that you are making Too Many Requests. Please wait and try again in a few moments. If it persists, restart your vs-code.
245+
246+
- This could be due to `insufficient_quota` on your OpenAI account. You could run the following cURL command to check if your account has enough quota (If you get a response back, that mean you have it and you can look at the other reasons for 429 below.)
247+
- Make sure to replace `$OPENAI_API_KEY` with your key that you use in this extension:
248+
249+
```bash
250+
curl https://api.openai.com/v1/completions \
251+
-H "Content-Type: application/json" \
252+
-H "Authorization: Bearer $OPENAI_API_KEY" \
253+
-d '{
254+
"model": "text-davinci-003",
255+
"prompt": "Can I make a request?\n\n",
256+
"temperature": 0.7,
257+
"max_tokens": 256,
258+
"top_p": 1,
259+
"frequency_penalty": 0,
260+
"presence_penalty": 0
261+
}'
262+
```
263+
235264
- This could also be due to multiple browser/requests being active on OpenAI. Make sure that none of your API Keys are being actively used at the moment.
236265
- You could also try re-generating a new API Key [here](https://beta.openai.com/account/api-keys)
266+
267+
- If you get `404 NotFound` error, it means one of the parameters you provided is unknown (i.e. `chatgpt.gpt3.model`). Most likely switching to default `model` in your settings would fix this issue.
268+
- If you get `400 BadRequest` error with API Key based method, it means that your conversation's length is more than GPT/Codex models can handle. Clear your conversation history with `ChatGPT: Clear conversation` command and retry sending your prompt.
269+
- If you get `ChatGPT is at capacity right now` during autologin, the extension will refresh the page every 2 seconds until you see the login page. Refreshing may help in some cases, when there is a queue. This is unfortunately out of this extension's control. If, even after refresh, OpenAI shows capacity error, the browser will close automatically.
237270
- If you see `ChatGPTAPI error terminated`, your requests are being throttled. Please try again later.
238271
- If you encounter persistent issues with your queries
239272
- Try `ChatGPT: Reset session` command

images/gpt35-model.png

29.5 KB
Loading

images/methods.png

3.72 KB
Loading

0 commit comments

Comments
 (0)