I’m trying to build a ChatGPT clone using React Native and Supabase with an Express backend. Right now, the server calls the OpenAI API and streams data using res.write, and the client uses react-native-sse to read the data.
My question is—I want to use Supabase and Supabase Auth, but I’m not exactly sure where to be saving the outputs from the OpenAI API. Should the client be uploading the messages, or the server?