일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 31 |
- Andorid
- ChatGPT
- JetPack
- 고금리
- ndkVersion
- EditText
- RETROFIT
- 사전청약
- ios
- 달러예금
- audio record
- 청약
- 용산 호반써밋 에이디션
- Android
- 예금
- Android Studio
- gradle
- Data Binding
- kotlin
- 3rd framework
- 새마을금고
- CHAT GPT
- ndk r24
- KB
- Mac
- java
- BindingAdapter
- Swift
- arm-linux-androideabi
- MG더뱅킹정기예금
- Today
- Total
목록dev/etc (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..