๐ŸŒˆ ํƒ€๋ฏธ๋…ธํŠธ

VS Code์—์„œ ChatGPT ์‚ฌ์šฉํ•˜๊ธฐ (CodeGPT)

Tamii 2023. 3. 10. 00:14
๋ฐ˜์‘ํ˜•

 

VS code์—์„œ chat GPT ์‚ฌ์šฉํ•˜๋Š” ๋ฒ•

 

 

์„ค์ • ๋ฐฉ๋ฒ•

1. chatGPT ๊ฐ€์ž…ํ•˜๊ธฐ

https://platform.openai.com/overview

 

 

OpenAI API

An API for accessing new AI models developed by OpenAI

platform.openai.com

 

 

2. API keys ์ƒ์„ฑ

 

 

3.  VS Code ์ต์Šคํ…์…˜์—์„œ Code GPT ์„ค์น˜

 

 

4. Code GPT์— API Keys ์„ค์ •

 

  4-1) cmd + shift + p  

  4-2) ์„ธํŒ… ์ž…๋ ฅ

CodeGPT: Set API KEY

  4-3) ๋ฐœ๊ธ‰๋ฐ›์€ API key ์ž…๋ ฅ

 

 

๐Ÿฅณ ์‚ฌ์šฉํ•  ์ค€๋น„ ์™„๋ฃŒ!

 

 

์ฃผ์˜ํ•  ์ 

์ฐธ๊ณ ๋กœ ํŠน์ • ์‚ฌ์šฉ๋Ÿ‰ ๊นŒ์ง€๋งŒ ๋ฌด๋ฃŒ์ด๊ณ  ๊ทธ ์ดํ›„์—๋Š” ๊ณผ๊ธˆ์ด ๋˜๋Š”๋ฐ

์•„๋ž˜ ํŽ˜์ด์ง€์—์„œ ํ™•์ธํ•  ์ˆ˜ ์žˆ๋‹ค.

https://platform.openai.com/account/usage

 

OpenAI API

An API for accessing new AI models developed by OpenAI

platform.openai.com

 

 

 

์ฐธ๊ณ  :  https://www.codegpt.co/docs/tutorial-basics/installation

 

Installation | Code GPT

Install Visual Studio Code

code-gpt-docs.vercel.app

 

 

 

์˜ค๋ฅ˜ ๋ฐœ์ƒ ์‹œ

๋งŒ์•ฝ ์•„๋ž˜์™€ ๊ฐ™์€ ์˜ค๋ฅ˜๊ฐ€ ๋ฐœ์ƒํ•œ๋‹ค๋ฉด, 

TypeError: Cannot read properties of undefined (reading 'message')

์ด๊ฑด Open AI์— ๊ฒฐ์ œ๋ฐฉ์‹ ์ง€์ •์„ ์•ˆํ•ด์„œ์ž…๋‹ˆ๋‹ค.

 

์•„๋ž˜ Billing ์—์„œ ๊ฒฐ์ œ ๋ฐฉ์‹์ด ๋“ฑ๋ก๋˜์–ด์žˆ๋Š”์ง€ ํ™•์ธํ•˜๊ณ  ๋“ฑ๋ก์ด ๋˜์–ด์žˆ์ง€ ์•Š์œผ๋ฉด ์นด๋“œ๋ฅผ ๋“ฑ๋กํ•ด์•ผ ํ•ฉ๋‹ˆ๋‹ค.

 

https://platform.openai.com/account/billing/overview?with_org=org-8xFFEGfMFD4QheKMia2ZDIjx 

 

OpenAI API

An API for accessing new AI models developed by OpenAI

platform.openai.com

 

์ฐธ๊ณ  : https://www.reddit.com/r/CodeGPT_VSCode/comments/11ln0du/openai_api_response_was_typeerror_cannot_read/