Build Your Own ChatGPT Android App with Kotlin & OpenAI API: Step-by-Step Tutorial #chatgpt

Build Your Own ChatGPT Android App with Kotlin & OpenAI API: Step-by-Step Tutorial #chatgpt

Android Arctic

1 год назад

23,872 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

KAHANI KAKSH
KAHANI KAKSH - 14.11.2023 11:56

val jsonArray: JSONArray =jsonObject.getJSONArray("choices") getting error No value for choices

Ответить
Юлия
Юлия - 24.10.2023 11:55

Thank you! I get the first response, but the following answers come with an error SPAN_EXCLUSIVE_EXCLUSIVE spans cannot have a zero length

Ответить
Manavdeep Singh
Manavdeep Singh - 18.10.2023 05:22

Can you send me files

Ответить
Silas Ohee
Silas Ohee - 06.10.2023 12:35

Thank you very much. You've provided guidance and reference files. God Bless you my brother...

Ответить
star youth
star youth - 13.09.2023 07:54

I'm getting a error when i click on submit button
somewhere it is saying My balance is not enough but i'm using first time
this is error

"error": {
"message": "You exceeded your current quota, please check your plan and billing details.",
"type": "insufficient_quota",
"param": null,
"code": "insufficient_quota"
}
}

Ответить
S I Hari Shankar
S I Hari Shankar - 17.08.2023 20:34

Good

Ответить
Prajjwal Dubey
Prajjwal Dubey - 19.07.2023 15:14

when i typed hello in return i'm getting this
package com.example.demo.controller;\n\nimport com.example.demo.model.User;\nimport com.example.demo.service.UserService;\nimport org.springframework.beans.factory.annotation.Autowired;\nimport org.springframework.web.bind.annotation.*;\n\nimport java.util.List;\n\n@RestController\n@RequestMapping(\"/user\")\npublic class UserController {\n\n @Autowired\n private UserService userService;\n\n @GetMapping(\"/all\")\n public List<User> getAllUsers(){\n return userService.getAllUsers();\n }\n\n @PostMapping(\"/add\")\n public void addUser(@RequestBody User user){\n userService.addUser(user);\n }\n\n @PutMapping(\"/update\")\n public void updateUser(@RequestBody User user){\n userService.updateUser(user);\n }\n\n @DeleteMapping(\"/delete/{id}\")\n public void deleteUser(@PathVariable int id){\n userService.deleteUser(id);\n }\n\n}",

Ответить
Mario O. Parra
Mario O. Parra - 22.06.2023 00:23

Thanks for the tutorial, It was really helpful

Ответить
TheWarOnEntropy
TheWarOnEntropy - 06.06.2023 17:00

Thanks. Got me started on a GPT4 app. Everything went smoothly!

Ответить
Pratham Jain
Pratham Jain - 20.05.2023 22:07

i did everything correctly but API is failing. i tried making new API key but still it doesn't work please help.

Ответить
VoteAwards - Paulinho o Loko
VoteAwards - Paulinho o Loko - 14.05.2023 04:54

the application is crashing when generating the response :(


Caused by: org.json.JSONException: No value for choices
at org.json.JSONObject.get(JSONObject.java:392)
at org.json.JSONObject.getJSONArray(JSONObject.java:587)
at com.example.chatgptapp.MainActivity$getResponse$1.onResponse(MainActivity.kt:71)


i copied the code from git but still the error remains

Ответить
Kaloyan Karaivanov
Kaloyan Karaivanov - 12.05.2023 10:23

Short and clear. Thanks. Wouldn't it be better if it was used Compose and KTOR?!

Ответить
Harshraj Mane
Harshraj Mane - 28.04.2023 06:36

I'm just getting response but it's not displaying in the application

Ответить
Learn With Bahman
Learn With Bahman - 26.04.2023 16:45

can you make a video about working with huggingface APIs too ? is the process the same?

Ответить
Anurag dubey
Anurag dubey - 24.04.2023 22:04

bro choices me error dikha raha hai error hai there is no value for the "choices" key in the JSON object.

Ответить
Reymar TV
Reymar TV - 11.04.2023 03:20

Edit your thumbnail into your created app.

Ответить
Gitesh Sethi
Gitesh Sethi - 10.04.2023 09:58

Please help me I am getting an error which showing no choices in json object please revert back

Ответить
GANDABBA
GANDABBA - 08.04.2023 04:41

this code is generate the app but when submit the question app doesnt working . can you give me the reson for it

Ответить
Raja2.0
Raja2.0 - 07.04.2023 16:37

Really good work. Thanks for the API key. Now i can also make it.

Ответить
RAHUL SINGH
RAHUL SINGH - 07.04.2023 14:33

Bahut Kamal dhamaal video hai ho bhaiyaa
Jaisan Bihar ka litti chokha
Paisa hi paisa hoga🤑🤑🤑🤑🤑🤑

Ответить
Aniket Prajapati
Aniket Prajapati - 06.04.2023 10:44

Informative and beginner friendly video ❤

Ответить