GenossGPT  by theodo-group

One-line replacement API for OpenAI, using OSS models

created 2 years ago
752 stars

Top 47.2% on sourcepulse

GitHubView on GitHub
1 Expert Loves This Project
Project Summary

GenossGPT provides a unified API to interact with various public and private Large Language Models (LLMs), including OpenAI, Anthropic, Llama V2, and HuggingFace models. It aims to simplify LLM integration by offering a one-line replacement for the OpenAI API, allowing developers to switch between different models with minimal code changes.

How It Works

GenossGPT acts as a proxy server, abstracting the complexities of interacting with diverse LLM APIs. It translates incoming requests into the format expected by the target LLM and returns the LLM's response in a standardized format, mimicking the OpenAI API structure. This approach facilitates easy model swapping and experimentation without altering application logic.

Quick Start & Requirements

  • Install the server: pip install genoss
  • Requires Python 3.11 or higher.
  • API documentation available at http://localhost:4321/docs.
  • For full setup and development, poetry install is recommended.

Highlighted Details

  • One-line replacement for OpenAI ChatGPT and Embeddings APIs.
  • Supports GPT4ALL models and embeddings out-of-the-box.
  • Future plans include support for HuggingFace, cloud provider solutions (GCP, AWS, Azure), and various model types (text-to-image, audio).

Maintenance & Community

The project is actively developed with contributions from multiple individuals. Community engagement is encouraged via issues and pull requests.

Licensing & Compatibility

Licensed under the Apache2 License, permitting commercial use and integration with closed-source applications.

Limitations & Caveats

Currently, only GPT4ALL models are officially supported. The project is in a prepublish state, and additional models are planned for future releases. The installation process for GPT4ALL models involves compiling from source, which may require additional development tools.

Health Check
Last commit

1 year ago

Responsiveness

Inactive

Pull Requests (30d)
0
Issues (30d)
0
Star History
0 stars in the last 90 days

Explore Similar Projects

Feedback? Help us improve.