AndraxDev / speak-gpt

Your personal voice assistant based on OpenAI ChatGPT.
https://play.google.com/store/apps/details?id=org.teslasoft.assistant
Apache License 2.0
290 stars 59 forks source link

Groq llama3 model works with errors #100

Closed WiegerWolf closed 6 months ago

WiegerWolf commented 6 months ago

Basically, I'm experiencing similar issue to the one described in #84 (in particular https://github.com/AndraxDev/speak-gpt/issues/84#issuecomment-2064759775). I'm using v3.22 downloaded from Google Play

After every response I get an error message. The response from API is fine, so the model works.

Issue Same chat, next message API url Model Event log (not sure if it's relevant)
photo1714243676 photo1714244382 photo1714243733 photo1714243733 (1) photo1714244937

Full chat log: c23975d31601afd39aae3feb0d1e95498b77dafaff4a0b1213e2635bbf67ef94.json Crash log is empty. Ads log is not relevant I think here.

It looks like speak-gpt app adds this text somewhere here, I guess, so it's not an issue with configuration or the API, it's an issue with error handling logic inside speak-gpt app. It fires when it shouldn't, I think.

AndraxDev commented 6 months ago

As you can see this message appends only when exception is happened. It means that library used in SpeakGPT is not fully compatible with other endpoints. The only thing I can do is to add ability users can hide error messages.

WiegerWolf commented 6 months ago

only thing I can do is to add ability users can hide error messages.

I think this is an acceptable solution for now. After all the model works just fine, it's just UI that is annoying at the moment.

WiegerWolf commented 6 months ago

library used in SpeakGPT is not fully compatible with other endpoints

Should I create an issue with the library used? If yes, please point me in the right direction.

AndraxDev commented 6 months ago

https://github.com/aallam/openai-kotlin

AndraxDev commented 6 months ago

Users dont see such errors when using official OpenAI endpoint.

AndraxDev commented 6 months ago

Starting from SpeakGPT 3.23 you can disable error messages. Usually it takes 1-2 business days before Play Store version becomes available.