Skip to content

feat: Add ModelsLab provider for PyGPT#167

Open
adhikjoshi wants to merge 1 commit into
szczyglis-dev:masterfrom
adhikjoshi:m
Open

feat: Add ModelsLab provider for PyGPT#167
adhikjoshi wants to merge 1 commit into
szczyglis-dev:masterfrom
adhikjoshi:m

Conversation

@adhikjoshi
Copy link
Copy Markdown

ModelsLab Integration for PyGPT

Comprehensive multi-modal AI provider integration adding ModelsLab's powerful APIs to PyGPT desktop AI assistant.

🌟 Features

🤖 Uncensored Chat (LLM)

  • OpenAI-compatible uncensored chat completion
  • Creative freedom without content restrictions
  • Supports streaming and function calling
  • Models: Llama 3.1 8B/70B Uncensored

🎨 Image Generation

  • High-quality image generation with multiple models
  • Models: Flux, SDXL, Playground v2.5, Juggernaut XL
  • Features: Style presets, negative prompts, CFG scale control
  • Resolutions: Up to 1792x1024 pixels
  • Auto-download and local storage

🎬 Video Generation (NEW!)

  • First comprehensive video plugin for PyGPT
  • Text-to-video and image-to-video generation
  • Models: CogVideoX, AnimateDiff
  • Features: Custom duration, FPS, resolution control
  • Formats: MP4 output with up to 60 seconds duration

🗣️ Text-to-Speech (TTS)

  • High-quality speech synthesis with emotion control
  • Voices: Default, Professional, Narrative, Conversational
  • Emotions: Neutral, Happy, Sad, Angry, Excited, Calm, Whisper, Dramatic
  • Languages: 12 languages including EN, ES, FR, DE, ZH, JA
  • Features: Speed control, voice cloning support

📦 Package Contents

Core Components

  • client.py (20KB) - ModelsLab API client with async support
  • modelslab.py (16KB) - LLM provider for PyGPT
  • models_json_additions.json (5KB) - Model definitions for PyGPT

Plugin Enhancements

  • Image Generation Provider (13KB) - Extends existing image plugin
  • Video Generation Plugin (18KB) - NEW comprehensive video plugin
  • TTS Provider (15KB) - Enhances audio output plugin

Integration Features

  • Multi-Modal API Client: Handles all ModelsLab endpoints
  • Async Processing: Intelligent polling for long-running operations
  • Error Handling: Robust error management and retry logic
  • Configuration: Seamless integration with PyGPT settings

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant