You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Mark the class as @serializable or provide the serializer explicitly exception occurs when optimizers and obfuscators are used.
Steps to Reproduce
Compile this API with R8 or ProGuard optimizer
Obfuscate the solution
Environment
openai-kotlin version: 3.2.0
Kotlin version: 1.7.21
OS: Windows 11
Additional Info
Code sample:
val completions:Flow<ChatCompletionChunk> = ai!!.chatCompletions(chatCompletionRequest)
Note
It works fine without optimizers
Stacktrace:
Process: org.teslasoft.assistant, PID: 766
b6.h: Serializer for class 'b' is not found.
Mark the class as @Serializable or provide the serializer explicitly.
at c4.h.I(Unknown Source:32)
at kotlinx.coroutines.b0.Y(Unknown Source:25)
at n7.o.k(Unknown Source:235)
at n7.j.l(Unknown Source:31)
at j5.a.h(Unknown Source:8)
at kotlinx.coroutines.j0.run(Unknown Source:102)
at android.os.Handler.handleCallback(Handler.java:942)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loopOnce(Looper.java:201)
at android.os.Looper.loop(Looper.java:288)
at android.app.ActivityThread.main(ActivityThread.java:7913)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:942)
Suppressed: kotlinx.coroutines.h0: [r1{Cancelling}@117e083, Dispatchers.Main]
The text was updated successfully, but these errors were encountered:
AndraxDev
changed the title
[Brief Issue Description]
[Bug with optimizers]
Apr 1, 2023
Description
Mark the class as @serializable or provide the serializer explicitly exception occurs when optimizers and obfuscators are used.
Steps to Reproduce
Environment
Additional Info
Code sample:
Stacktrace:
The text was updated successfully, but these errors were encountered: