{"repo":"transitive-bullshit/OpenOpenAI","free":true,"listed":false,"github":"https://github.com/transitive-bullshit/OpenOpenAI","clone":"git clone https://github.com/transitive-bullshit/OpenOpenAI.git","description":"Self-hosted version of OpenAI’s new stateful Assistants API","language":"TypeScript","stars":549,"topics":["assistants","gpts","openai","openai-api","self-hosted"],"license":"MIT","category":"self-hosted-apps","readme_excerpt":"OpenOpenAI - Intro - Why? - Stack - Development - Environment Variables - Services - E2E Examples - Custom Function Example - Retrieval Tool Example - Server routes - TODO - License Intro This project is a self-hosted version of OpenAI's new stateful Assistants API. 💪 All API route definitions and types are 100% auto-generated from OpenAI's official OpenAPI spec, so all it takes to switch between the official API and your custom API is changing the baseURL . 🤯 This means that all API parameters, responses, and types are wire-compatible with the official OpenAI API, and the fact that they're auto-generated means that it will be relatively easy to keep them in sync over time. Here's an example using the official Node.js openai package: Python example Here's the same example using the official Python openai package: Note that this project is not meant to be a full recreation of the entire OpenAI API. Rather, it is focused only on the stateful portions of the new Assistants API . The following resource types are supported: - Assistants - AssistantFiles - Files - Messages - MessageFiles - Threads - Runs - RunSteps See the official OpenAI Assistants Guide for more info on how Assistants work. Why? Being able to run your own, custom OpenAI Assistants that are 100% compatible with the official OpenAI Assistants unlocks all sorts of useful possibilities: - Using OpenAI Assistants with custom models (OSS ftw!) 💪 - Fully customizable RAG via the built-in retrieval tool (LangChain and","default_branch":null,"files":null,"tree":[],"storefront":"/r/transitive-bullshit","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/transitive-bullshit/OpenOpenAI/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}