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

[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..