fal-ai / fal-js

The JavaScript client and utilities to fal-serverless with built-in TypeScript definitions
https://fal.ai
MIT License
91 stars 19 forks source link

React Native | ApiError: INTERNAL_ERROR: 'bytes' #85

Open tarikfp opened 3 months ago

tarikfp commented 3 months ago

Following code throws ApiError: INTERNAL_ERROR: 'bytes' in a react native environment. I wonder if fal.ai still support react-native?

It used to work perfectly with sdxl-turbo-realtime-model model, apparently, this model does not even exist anymore all of a sudden 👀

Any suggestions for a similar model to sdxl-turbo-realtime-model ?

// using server-proxy
 fal.config({
   proxyUrl:
    "server-proxy-url,
 });

// implementation
  const { send } = fal.realtime.connect<LcmInput, LcmOutput>(
    "fal-ai/fast-lcm-diffusion",
    {
      onError(error) {
      // error being thrown here...
        console.log(error);
      },
      onResult: (result) => {
        console.log(result);
      },
    },
  );