DEV Community

L. Fernando De Pombo
L. Fernando De Pombo

Posted on • Edited on

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)