File tree Expand file tree Collapse file tree
src/main/java/org/openinsectid/app/ui/components Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2727
2828# Keep inference helper
2929-keep class org.openinsectid.app.utils.InferenceManager { *; }
30+
31+
32+ # Gson rules for AlphaResponse
33+ -keep class org.openinsectid.app.data.AlphaResponse { *; }
34+ -keep class org.openinsectid.app.data.AlphaInnerResponse { *; }
35+ -keepclassmembers class org.openinsectid.app.data.* {
36+ <fields>;
37+ }
38+
39+ # Gson general rules
40+ -keepattributes Signature
41+ -keepattributes *Annotation*
42+ -dontwarn sun.misc.**
43+ -keep class com.google.gson.** { *; }
Original file line number Diff line number Diff line change @@ -79,10 +79,12 @@ private fun parseAlphaResponse(raw: String): String {
7979 } else {
8080 " Error: $raw "
8181 }
82- } catch (_: JsonSyntaxException ) {
82+ } catch (e: JsonSyntaxException ) {
83+ Log .e(" AlphaLLM" ," $e : ${e.message} ; $raw " )
8384 // Fallback to raw text if JSON parsing fails
8485 raw
85- } catch (_: Exception ) {
86+ } catch (e: Exception ) {
87+ Log .e(" AlphaLLM" ," $e : ${e.message} ; $raw " )
8688 raw
8789 }
8890}
You can’t perform that action at this time.
0 commit comments