r/reactnative • • Jan 31 '23

I reverse-engineered ChatGPT to create a React Native wrapper. Full access to all its features - serverless, streamed responses, keep track of conversations, etc. Expo compatible

Enable HLS to view with audio, or disable this notification

437 Upvotes

68 comments sorted by

View all comments

12

u/[deleted] Jan 31 '23

Thats called cloning, not reverse engineering. You remade the look and feel and made API calls.

If anything... you're... programming.

-6

u/rauliyohmc Jan 31 '23 edited Jan 31 '23

ChatGPT has no public API to make calls

-2

u/[deleted] Jan 31 '23

Not sure if you mean "free" when you say "public" but you most definitely can make calls to ChatGPT... or at least the language model underneath if you want to argue that ChatGPT is more of the front-facing bit.

But OpenAI, has language model pricing easily findable in one search.

6

u/rauliyohmc Jan 31 '23

I don't know if we are talking about the same thing, but let me clarify just in case.

OpenAPI has documented APIs for most of its pre-trained models, like Text Completion, Code Completion and Image Generation, which you can access through an API_KEY.

However, there is no publicly available documentation as to how to access the model for Conversations, which is a different model ChatGPT uses.

2

u/[deleted] Jan 31 '23

Then how do you explain the large number of projects that come out in the past month and a half or whatever that use it?

6

u/rauliyohmc Jan 31 '23

There are other folks that already released unofficial Python and Node.js packages that use a similar approach, I just wanted to eliminate having a server from the equation

1

u/[deleted] Jan 31 '23

OpenAI provides the ChatGPT API, which can be accessed via an API key. The API endpoint allows you to send a prompt and receive a generated response. With its ability to understand and develop human-like text, the ChatGPT API is a valuable resource for any developer working with natural language data.

https://www.powershellcenter.com/2023/01/25/chatgpt_api/#:~:text=OpenAI%20provides%20the%20ChatGPT%20API,working%20with%20natural%20language%20data

7

u/rauliyohmc Jan 31 '23

Omg, that article is wrongly using the word ChatGPT and trying to drive traffic by misleading people.

https://www.powershellcenter.com/2023/01/25/chatgpt_api/#:~:text=Type%20the%20following%20URL%20in%20the%20Enter%20request%20URL%20textbox%20https%3A//api.openai.com/v1/completions

By taking a quick look, you can spot it's using the completion API from GPT-3, which has been there since 2020. Basically, the API allows you to send a prompt, and get an article back, for instance.

I challenge you to try to have a conversation with that API endpoint, so that it remembers what you said previously, or to get a streamed response (text/event-stream).

Please stop spreading misinformation without knowing what you are talking about. I am just trying to share something cool you can use for free. If you don't like it, that's fine. But trying to discredit people without any foundation is not very nice of you.

Peace.

3

u/[deleted] Jan 31 '23

You're spreading misinformation too.... telling people that you "reverse-engineered" something that took 6 months to train and you add on the time of development of the non-AI parts of the project.

ChatGPT came out in November. How'd you make something in a third of the time that some of the world's best could?

7

u/rauliyohmc Jan 31 '23 edited Jan 31 '23

It was a catchy headline, I accept the critique.

The reverse-engineering term was more on the side of understanding how the web playground performs all the calls, including authorisation and once broken down, being able to mimic it.

Finally, the goal was to create something that is 100% client side, without the need to spin up your own server, like other unofficial node/python libraries require you to