일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- kotlin
- RETROFIT
- Android
- Android Studio
- Andorid
- ndkVersion
- MG더뱅킹정기예금
- ChatGPT
- 고금리
- gradle
- Data Binding
- CHAT GPT
- 사전청약
- EditText
- ndk r24
- ios
- 달러예금
- 청약
- 용산 호반써밋 에이디션
- Mac
- arm-linux-androideabi
- java
- JetPack
- KB
- BindingAdapter
- 새마을금고
- 예금
- 3rd framework
- Swift
- audio record
- Today
- Total
목록ChatGPT (2)
pear
Call Retrofit API GPTRetrofitInterface mRetrofitInterface = RetrofitGPT .getClient(domain).create(GPTRetrofitInterface.class); try { gptBody body = new gptBody(); body.model = "gpt-3.5-turbo"; body.messages[0].role = "user"; body.messages[0].content = "contents"; Gson gson = new Gson(); String json = gson.toJson(body); JsonObject jsonObject = JsonParser.parseString(json).getAsJsonObject(); Call ..
![](http://i1.daumcdn.net/thumb/C150x150/?fname=https://blog.kakaocdn.net/dn/biiOLs/btr4PrMiRDm/83gD3F5zCO520Wuyo3KKH0/img.png)
[Prepare the environment] start openai home page [Move to Developers Overview] https://platform.openai.com/ 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..