using in Android project #136
Replies: 6 comments 4 replies
-
@ilker-aktuna Thanks for trying simple-openai. In the discussion #117 you can find an approach to solve your dependency issue with Gradle. However, you cannot use this library on Android, because Android does not support the Java 11 HttpClient component, a current key component for simple-openai. Researching is necessary to evaluate if I can replace it with another component supported by Android #114 |
Beta Was this translation helpful? Give feedback.
-
@sashirestela thanks for your quick response. I added following block to the end of the android section of my build.gradle
Should it be placed elsewhere ? Btw, I can adapt my project to use HttpClient if I can solve the issue with dexing.. On the other hand, I am just looking for a simple method to maintain Stream response from openAI for the run request. |
Beta Was this translation helpful? Give feedback.
-
Maybe you could drop a message to the discussion's author (Bjorn Bringert).
That will be awesome, just let me know when you got it.
For all the http communication even Stream, I'm using the cleverclient library, however it depends on Java 11 HttpClient. |
Beta Was this translation helpful? Give feedback.
-
thank you.
I really need to find a solution to this but I can't |
Beta Was this translation helpful? Give feedback.
-
I've asked to ChatGpt and it has some suggestions. Take a look at: https://chat.openai.com/share/5e804d23-7e9e-4a64-9773-bd694521b9fc |
Beta Was this translation helpful? Give feedback.
-
thanks. I've tried them all now without any success. I am trying to write my own stream handler now. Would it be possible to do it with HttpUrlConnection like :
|
Beta Was this translation helpful? Give feedback.
-
I am trying to use Simple-OpenAI on an Android project but I get this error in dexing phase:
I am not a gradle expert but I understand that gradle can't use the dependency slf4j-simple
Any ideas for a solution ? Or root cause of the issue ?
Beta Was this translation helpful? Give feedback.
All reactions