Failure of ChatCompletionExample #50
Unanswered
BluePasta23
asked this question in
Q&A
Replies: 1 comment
-
Trimming stack traces really hurts people's ability to help you. Full logs are always preferred, especially when developers are involved. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi together, the Kotlin ChatCompletion Example fails on me with the following error - anybody with a similar problem?
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.chatapitest/com.example.chatapitest.MainActivity}: android.os.NetworkOnMainThreadException
at com.cjcrafter.openai.OpenAIImpl.executeRequest(OpenAIImpl.kt:36)
at com.cjcrafter.openai.OpenAIImpl.createChatCompletion(OpenAIImpl.kt:123)
at com.example.chatapitest.MainActivityKt.testfun(MainActivity.kt:50)
Beta Was this translation helpful? Give feedback.
All reactions