11-27 03:26
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | ||||||
| 2 | 3 | 4 | 5 | 6 | 7 | 8 |
| 9 | 10 | 11 | 12 | 13 | 14 | 15 |
| 16 | 17 | 18 | 19 | 20 | 21 | 22 |
| 23 | 24 | 25 | 26 | 27 | 28 | 29 |
| 30 |
Tags
- ios
- 예금
- 3rd framework
- arm-linux-androideabi
- Android Studio
- BindingAdapter
- Data Binding
- ChatGPT
- ndk r24
- 용산 호반써밋 에이디션
- ndkVersion
- audio record
- 새마을금고
- java
- kotlin
- MG더뱅킹정기예금
- 청약
- 사전청약
- JetPack
- Andorid
- Mac
- Android
- 고금리
- KB
- EditText
- gradle
- RETROFIT
- Swift
- 달러예금
- CHAT GPT
Archives
- Today
- Total
pear
[openai] chatgpt 1 - Setting & RestAPI 본문
[Prepare the environment]
start openai home page
[Move to Developers Overview]
Select Personal(my info) in Site
Move to View API Key
Create new secret key
copy my "SECRET KEY"

[Move to API reference tap]
http request(post) url : https://api.openai.com/v1/chat/completions
need Http Header
@content-type : application/json
@Authorization : Bearer "SECRET KEY"
@Json Body :
{
"model": "gpt-3.5-turbo",
"messages": [{"role": "user", "content": "boll game list"}, {"role": "user", "content": "one of the most popular games"}]
}

next
'dev > etc' 카테고리의 다른 글
| [openai] chatgpt 2 - RestAPI with retrofit (0) | 2023.03.20 |
|---|