Skip to content
zlogic-labsPublic

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

👋 NexLLM — Connecting Every Language Model

NexLLM is a high-performance LLM Gateway designed for enterprise AI architectures. It provides a unified interface to abstract the complexities of various Large Language Models (LLMs), ensuring industrial-grade stability and scalability under extreme concurrency.

Our mission: To standardize LLM infrastructure and empower developers to build resilient AI applications.


🚀 Core Features

✅ Universal Model Proxy

  • Unified API standard (OpenAI-compatible) for seamless integration with GPT-4, Claude, Gemini, Llama, and self-hosted models.
  • Cross-protocol support for Streaming and Function Calling across different model providers.

✅ High-Performance Gateway

  • Built on an asynchronous, non-blocking architecture, supporting 100k+ TPS peak throughput.
  • Millisecond-level routing latency with adaptive load balancing.

✅ Industrial Reliability

  • Built-in multi-level circuit breaking, automatic retries, and rapid failover mechanisms.
  • Smart rate limiting and backpressure control to protect downstream providers from traffic spikes.

⏳ Usage Computing & Stats (In Progress)

  • Real-time token consumption calculation and multi-dimensional analytics (by tenant, model, timestamp).
  • Granular observability dashboards for usage insights.

🗺️ Cost Analysis & Billing (In Roadmap)

  • Flexible pricing engine supporting dynamic rates and tiered pricing models.
  • Automated billing generation and real-time cost alerting.

✨ Additional Highlights

  • Cross-Language Event-Driven Architecture Powered by Kafka and Schema Registry, ensuring strict event contracts between Java gateways, Python analytics, and provisioning tools.

  • Model Self-Healing Automatically monitors backend provider health and reroutes requests to backup models during downtime.

  • Security & Privacy Integrated sensitive-word filtering, PII de-identification, and robust authentication (API Key, OAuth2).

  • Full Observability Native integration with Prometheus (metrics) and OpenTelemetry (distributed tracing), providing full visibility into the request lifecycle.


🛠️ Quick Start

1️⃣ Initialize Infrastructure

NexLLM relies on a high-performance message bus for state synchronization. Start the core components:

# Launch Kafka Cluster, Schema Registry, and Database
docker-compose up -d

2️⃣ Provision Model Contracts

Register event schemas and generate cross-language constants using the built-in tool:

cd infra-init
# Sync configuration and generate Java/Python constant classes
python main.py all

3️⃣ Launch the Gateway

# Start the core Java high-performance gateway
./mvnw spring-boot:run -pl nexllm-gateway

📅 Roadmap

  • Phase 1: Implement real-time token counting engine for streaming responses.
  • Phase 2: Introduce latency-aware Smart Model Fallback strategies.
  • Phase 3: Release enterprise multi-tenant management portal and cost allocation system.

🤝 Contribution & Feedback

Contributions are welcome, including:

  • Bug reports
  • Feature requests
  • Documentation improvements

🔗 Project Home: NexLLM 🐞 Issue Tracker: GitHub Issues


📄 License

This project is licensed under the Apache License 2.0. See the LICENSE file for details.


About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages