Skythinker616 / gpt-assistant-android

免费的ChatGPT API的安卓语音助手,可用音量键唤起并进行语音交流,支持联网、Vision拍照识图、提问模板等功能 | A free ChatGPT API voice assistant for Android, activated via volume keys for voice interaction, supporting features such as network connectivity, Vision photo recognition, and question templates.
GNU General Public License v3.0
665 stars 94 forks source link

闪退 #16

Closed xinggonglie closed 11 months ago

xinggonglie commented 11 months ago

Screenshot_2023-12-11-10-03-18-099_com.miui.thirdappassistant.jpg

cn.hutool.json.JSONException: Unterminated string at 10 [character 0 line 3] at cn.hutool.json.JSONTokener.syntaxError(JSONTokener.java:413) at cn.hutool.json.JSONTokener.nextString(JSONTokener.java:242) at cn.hutool.json.JSONTokener.nextValue(JSONTokener.java:338) at cn.hutool.json.JSONParser.parseTo(JSONParser.java:69) at cn.hutool.json.ObjectMapper.mapFromTokener(ObjectMapper.java:240) at cn.hutool.json.ObjectMapper.mapFromStr(ObjectMapper.java:216) at cn.hutool.json.ObjectMapper.map(ObjectMapper.java:98) at cn.hutool.json.JSONObject.(JSONObject.java:210) at cn.hutool.json.JSONObject.(JSONObject.java:187) at cn.hutool.json.JSONObject.(JSONObject.java:142) at cn.hutool.json.JSONObject.(JSONObject.java:125) at com.skythinker.gptassistant.MainActivity$3.lambda$onFinished$1$com-skythinker-gptassistant-MainActivity$3(MainActivity.java:289) at com.skythinker.gptassistant.MainActivity$3$$ExternalSyntheticLambda3.run(Unknown Source:4) at android.os.Handler.handleCallback(Handler.java:942) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loopOnce(Looper.java:211) at android.os.Looper.loop(Looper.java:300) at android.app.ActivityThread.main(ActivityThread.java:8152) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:580) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1028)

Skythinker616 commented 11 months ago

该错误似乎由于GPT返回格式不标准导致,请问该错误是否能够稳定复现?希望能提供报错时所使用的GPT模型和prompt。

xinggonglie commented 11 months ago

我没在用,手机跳出的提示

---原始邮件--- 发件人: @.> 发送时间: 2023年12月11日(周一) 中午11:10 收件人: @.>; 抄送: @.**@.>; 主题: Re: [Skythinker616/gpt-assistant-android] 闪退 (Issue #16)

该错误似乎由于GPT返回格式不标准导致,请问该错误是否能够稳定复现?希望能提供报错时所使用的GPT模型和prompt。

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

Skythinker616 commented 11 months ago

可能是误触了音量键?如果无法复现的话我会关闭本issue,后续版本将会捕获该错误以避免崩溃。

xinggonglie commented 11 months ago

跟音量键应该没关系,无障碍模式我给关了

---原始邮件--- 发件人: @.> 发送时间: 2023年12月11日(周一) 中午11:21 收件人: @.>; 抄送: @.**@.>; 主题: Re: [Skythinker616/gpt-assistant-android] 闪退 (Issue #16)

可能是误触了音量键?如果无法复现的话我会关闭本issue,后续版本将会捕获该错误以避免崩溃。

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>