Relative Content

Tag Archive for pythonswiftgoogle-cloud-firestoregoogle-cloud-functionsuikit

firebase function does not work correctly with swift, but works with a direct html request

I have a simple cloud function gen1 that accepts settings and returns a response from the “chat gpt” it sends, it is written in Python 3, which works great directly through the request, but when I try to do the same with the help of swift, it returns an error: Error: FunctionsErrorCode(rawValue: 3) , INVALID ARGUMENT, nil.
(everything worked when sending only the request text in the gpt configuration to the python function)
enter image description here