{"id":13493903,"url":"https://github.com/theodo-group/GenossGPT","last_synced_at":"2025-03-28T13:31:17.030Z","repository":{"id":181687975,"uuid":"667148214","full_name":"theodo-group/GenossGPT","owner":"theodo-group","description":"One API for all LLMs either Private or Public (Anthropic, Llama V2, GPT 3.5/4, Vertex, GPT4ALL, HuggingFace ...) 🌈🐂  Replace OpenAI GPT with any LLMs in your app with one line.","archived":false,"fork":false,"pushed_at":"2023-12-15T11:36:56.000Z","size":3101,"stargazers_count":751,"open_issues_count":12,"forks_count":63,"subscribers_count":15,"default_branch":"main","last_synced_at":"2024-10-30T01:37:43.901Z","etag":null,"topics":["api","gpt","gpt4all","huggingface","inference","llama","llm","openai","private","public"],"latest_commit_sha":null,"homepage":"https://genoss.ai/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/theodo-group.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2023-07-16T19:50:25.000Z","updated_at":"2024-10-17T03:27:16.000Z","dependencies_parsed_at":"2023-12-15T12:44:51.732Z","dependency_job_id":"a837e62b-0341-495e-aa4b-55576e2bde8a","html_url":"https://github.com/theodo-group/GenossGPT","commit_stats":null,"previous_names":["opengenenerativeai/genossai","opengenenerativeai/genossgpt","theodo-group/genossgpt","opengenerativeai/genossgpt"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theodo-group%2FGenossGPT","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theodo-group%2FGenossGPT/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theodo-group%2FGenossGPT/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theodo-group%2FGenossGPT/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/theodo-group","download_url":"https://codeload.github.com/theodo-group/GenossGPT/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245972698,"owners_count":20702721,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api","gpt","gpt4all","huggingface","inference","llama","llm","openai","private","public"],"created_at":"2024-07-31T19:01:19.899Z","updated_at":"2025-03-28T13:31:17.001Z","avatar_url":"https://github.com/theodo-group.png","language":"Python","funding_links":[],"categories":["Python","HarmonyOS"],"sub_categories":["Windows Manager"],"readme":"# Genoss GPT\n## One line replacement for openAI ChatGPT \u0026 Embeddings powered by OSS models\n\n\n\u003cdiv align=\"center\"\u003e\n    \u003cimg src=\"https://raw.githubusercontent.com/OpenGenerativeAI/GenossGPT/v0.0.1/doc/assets/logo.png\" alt=\"Genoss\" width=\"40%\"  style=\"border-radius: 50%; padding-bottom: 20px\"/\u003e\n\u003c/div\u003e\n\nGenoss is a pioneering open-source initiative that aims to offer a seamless alternative to OpenAI models such as GPT 3.5 \u0026 4, using open-source models like GPT4ALL.\n\nProject bootstrapped using [Sicarator](https://github.com/sicara/sicarator)\n\n## Features\n\n- **Open-Source**: Genoss is built on top of open-source models like GPT4ALL.\n- **One Line Replacement**: Genoss is a one-line replacement for OpenAI ChatGPT API.\n\n## Demo\n\nChat Completion and Embedding with GPT4ALL\n\n\nhttps://github.com/OpenGenenerativeAI/GenossGPT/assets/19614572/9cfd4f69-6396-4883-b94d-e94dd76663dc\n\n\n\n## Supported Models\n\n- GPT4ALL Model \u0026 Embeddings\n- More models coming soon!\n\n\n## Starting Up\n\nBefore you embark, ensure Python 3.11 or higher is installed on your machine.\n\n### Install the server\n#### Using pip (RECOMMENDED)\n:warning: we are currently in prepublish.\n\n```shell\npip install genoss\n```\n\n#### Install the latest version from this repository\n```shell\npip install git+https://github.com/OpenGenerativeAI/GenossGPT.git@main\\#egg\\=genoss\n```\n\n#### Run the server\n\n```shell\ngenoss-server\n# To know more\ngenoss-server --help\n```\n\nAccess the api docs via http://localhost:4321/docs .\n\n## Models Installation\n\n\u003cdetails\u003e\n\u003csummary\u003eInstall GPT4ALL Model\u003c/summary\u003e\nThe first step is to install GPT4ALL, which is the only supported model at the moment. You can do this by following these steps:\n\n1. Clone the repository:\n\n```bash\ngit clone --recurse-submodules git@github.com:nomic-ai/gpt4all.git\n```\n\n2. Navigate to the backend directory:\n\n```bash\ncd gpt4all/gpt4all-backend/\n```\n\n3. Create a new build directory and navigate into it:\n\n```bash\nmkdir build \u0026\u0026 cd build\n```\n\n4. Configure and build the project using cmake:\n\n```bash\ncmake ..\ncmake --build . --parallel\n```\n\n5. Verify that libllmodel.* exists in `gpt4all-backend/build`.\n\n6. Navigate back to the root and install the Python package:\n\n```bash\ncd ../../gpt4all-bindings/python\npip3 install -e .\n```\n\n7. Download it to your local machine from [here](https://gpt4all.io/models/ggml-gpt4all-j-v1.3-groovy.bin) and put it in the `local_models` directory as `local_models/ggml-gpt4all-j-v1.3-groovy.bin`\n\n\u003c/details\u003e\n\n## Running the Application\nYou need to install [poetry](https://python-poetry.org/docs/) and a valid python version (3.11*).\n```bash\npoetry install\n```\nFor more, on a complete install for development purpose, you can check the [CONTRIBUTING.md](CONTRIBUTING.md).\nIf you simply want to start the server, you can install with the corresponding poetry groups :\n```bash\npoetry install --only main,llms\n```\n\nAfter the Python package has been installed, you can run the application. The Uvicorn ASGI server can be used to run your application:\n\n```bash\nuvicorn main:app --host 0.0.0.0 --port 4321\n```\n\nThis command launches the Genoss application on port 4321 of your machine.\n\n## Running the Webapp Demo\n\nIn the `demo/`\n\n```bash\ncp .env.example .env\n```\n\nReplace the values and then\n\n```bash\nPYTHONPATH=. streamlit run demo/main.py\n```\n\n## Genoss API Usage\n\nThe Genoss API is a one-line replacement for the OpenAI ChatGPT API. It supports the same parameters and returns the same response format as the OpenAI API.\n\nSimply replace the OpenAI API endpoint with the Genoss API endpoint and you're good to go!\n\nModify the models to the supported list of models and you're good to go!\n\nYou can find the API documentation at `/docs` or `/redoc`.\n\n![Screenshot of api documentation](https://raw.githubusercontent.com/OpenGenerativeAI/GenossGPT/v0.0.1/doc/assets/2023-07-17-23-46-34.png)\n\n\n## Upcoming Developments\n\nWhile GPT4ALL is the only model currently supported, we are planning to add more models in the future. So, stay tuned for more exciting updates.\n\nThe vision:\n\n- [X] Allow LLM models to be ran locally\n- [X] Allow LLM to be ran locally using HuggingFace\n- [X] ALlow LLM to be ran on HuggingFace and just be a wrapper around the inference API.\n- [ ] Allow easy installation of LLM models locally\n- [ ] Allow users to use cloud provider solutions such as GCP, AWS, Azure, etc ...\n- [ ] Allow users management with API keys\n- [ ] Have all kinds of models available for use (text to text, text to image, text to audio, audio to text, etc.)\n- [X] Be compatible with OpenAI API for models that are compatible with OpenAI API\n\n![Screenshot of vision diagram](https://raw.githubusercontent.com/OpenGenerativeAI/GenossGPT/v0.0.1/doc/assets/2023-07-19-23-54-47.png)\n\n## History\n\nGenoss was imagined by [Stan Girard](https://github.com/StanGirard) when a feature of [Quivr](https://github.com/StanGirard/quivr) became too big and complicated to maintain.\n\nThe idea was to create a simple API that would allow to use any model with the same API as OpenAI's ChatGPT API.\n\nThen @[mattzcarey](https://github.com/mattzcarey), @[MaximeThoonsen](https://github.com/MaximeThoonsen), @[Wirg](https://github.com/Wirg) and @[StanGirard](https://github.com/StanGirard) started working on the project and it became a reality.\n\n## Contributions\n\nYour contributions to Genoss are immensely appreciated! Feel free to submit any issues or pull requests.\n\nThanks go to these wonderful people:\n\n\u003ca href=\"https://github.com/opengenerativeai/genossGPT/graphs/contributors\"\u003e\n\u003cimg src=\"https://contrib.rocks/image?repo=opengenerativeai/genossGPT\" /\u003e\n\u003c/a\u003e\n\n## Sponsors ❤️\n\nThis project could not be possible without the support of our sponsors. Thank you for your support!\n\n\u003ca href=\"https://www.theodo.fr/\"\u003e\n  \u003cimg src=\"https://avatars.githubusercontent.com/u/332041?s=200\u0026v=4\" alt=\"Theodo\" style=\"padding: 10px\" width=\"70px\"\u003e\n\u003c/a\u003e\n\u003ca href=\"https://www.aleios.com/\"\u003e\n  \u003cimg src=\"https://avatars.githubusercontent.com/u/97908131?s=200\u0026v=4\" alt=\"Aleios\" style=\"padding: 10px\" width=\"70px\"\u003e\n\u003c/a\u003e\n\u003ca href=\"https://www.sicara.fr/\"\u003e\n  \u003cimg src=\"https://avatars.githubusercontent.com/u/23194788?s=200\u0026v=4\" alt=\"Sicara\" style=\"padding: 10px\" width=\"70px\"\u003e\n\u003c/a\u003e\n\n## License\n\nGenoss is licensed under the Apache2 License. For more details, refer to the [LICENSE](LICENSE) file.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftheodo-group%2FGenossGPT","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftheodo-group%2FGenossGPT","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftheodo-group%2FGenossGPT/lists"}