Комментарии:
val jsonArray: JSONArray =jsonObject.getJSONArray("choices") getting error No value for choices
ОтветитьThank you! I get the first response, but the following answers come with an error SPAN_EXCLUSIVE_EXCLUSIVE spans cannot have a zero length
ОтветитьCan you send me files
ОтветитьThank you very much. You've provided guidance and reference files. God Bless you my brother...
Ответить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"
}
}
Good
Ответить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}",
Thanks for the tutorial, It was really helpful
ОтветитьThanks. Got me started on a GPT4 app. Everything went smoothly!
Ответитьi did everything correctly but API is failing. i tried making new API key but still it doesn't work please help.
Ответить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
Short and clear. Thanks. Wouldn't it be better if it was used Compose and KTOR?!
ОтветитьI'm just getting response but it's not displaying in the application
Ответитьcan you make a video about working with huggingface APIs too ? is the process the same?
Ответитьbro choices me error dikha raha hai error hai there is no value for the "choices" key in the JSON object.
ОтветитьEdit your thumbnail into your created app.
ОтветитьPlease help me I am getting an error which showing no choices in json object please revert back
Ответитьthis code is generate the app but when submit the question app doesnt working . can you give me the reson for it
ОтветитьReally good work. Thanks for the API key. Now i can also make it.
ОтветитьBahut Kamal dhamaal video hai ho bhaiyaa
Jaisan Bihar ka litti chokha
Paisa hi paisa hoga🤑🤑🤑🤑🤑🤑
Informative and beginner friendly video ❤
Ответить