migueldeicaza / PlaticaBot

MacOS, iOS and watchOS ChatGPT client using your own OpenAI key

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

I seem to get "Failed to communicate" to every query on every platform.

bbfrederick opened this issue · comments

Hi - I thought I'd give this a try, and after some trial and error, I've managed to run this app on a real and simulated iPhone 14 pro, and on a M2 Mac, but in each case, the only response I ever get is "Failed to communicate". I made sure outgoing network connections are permitted, and I've tried with GPT3 and 4 on the phone (how do you select the model on the Mac?). I have entered a newly generated OpenAI API key, so that should be taken care of.

As far as I can tell from the Network activity report, data is being sent out, and data is being returned (is there an easy way to see what the response from the remote host actually is?). That said, although I'm very comfortable with development in general, Swift is new to me, and I only dabble in Xcode occasionally, so I may have just made a stupid mistake. Are you aware of anybody else who's gotten this going?

Let me improve the error reporting as someone else was tripped by this. In one case it turned out to be that they had a key, but no credit card on file at openai

good call on surfacing the model switcher on macOS.

Fixed, it should now surface the exact problem and help you diagnose the issue