DEV Community

Luis Fernando De Pombo
Luis Fernando De Pombo

Posted on • Edited on

1

npm i openai-react-native

We just published this package. It is a React Native OpenAI API client without polyfills since the official OpenAI Node SDK does not support React Native. See this issue.

Today the library supports chat streaming, normal chat completions and expo file upload with more endpoints coming soon. The goal of the library is to follow the OpenAI Node SDK wherever possible without using any polyfills by taking advantage of React Native SSE and Expo FileSystem implementations to support calling the OpenAI API through a proxy from React Native with streaming and file upload support. Lmk what you think or what you would like to see!

https://github.com/backmesh/openai-react-native

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay