mem0ai / mem0

The memory layer for Personalized AI
https://mem0.ai
Apache License 2.0
20.27k stars 1.9k forks source link

Create OpenAI-API structure compatible API example #773

Open aviaryan opened 10 months ago

aviaryan commented 10 months ago

🚀 The feature

EmbedChain has an API server example here. https://docs.embedchain.ai/examples/api_server It has a reasonable API structure.

I would like it we we had an example that had the same API structure as OpenAI API.

Motivation, pitch

Many custom ChatGPT frontends can work with the OpenAI API type structure. One such front end is TypingMind.

It has support for OpenAI style external API as shown below.

If we can have an example with an OpenAI-style API structure, we can use a dedicated chat interface for chatting with our data that gives many extra features like chat history persistence, data formatting, and many others.

CleanShot 2023-10-06 at 19 47 07@2x

CrypticRevenger commented 10 months ago

Please assign me, I want to do it.

taranjeet commented 8 months ago

cc @deshraj