Skip to content

Conversation

@devsahm
Copy link

@devsahm devsahm commented Feb 10, 2026

Add ModelsLab Provider Integration

Overview

Adds ModelsLab as a new provider supporting images, audio, text, and streaming capabilities.

Links

Features

Image Generation

  • Text-to-image generation
  • Image-to-image transformation
  • Async polling for results

Audio

  • Text-to-speech (TTS)
  • Speech-to-text (STT)
  • Async polling for results

Text Generation

  • Standard chat completions
  • Configurable parameters: temperature, topP, maxTokens

Streaming

  • SSE-based streaming with delta events
  • Real-time response delivery

Implementation Details

  • Async Operations: Poll fetch_result endpoints until completion
  • Error Handling: Robust handling of ModelsLab's error
  • Image Output: URLs returned from async results
  • Audio Output: Base64-encoded audio data

Files Added

src/Providers/ModelsLab/
├── Provider implementation
├── Request handlers
└── Model maps

tests/Providers/ModelsLab/
└── Full test coverage

docs/providers/modelslab.md
└── Usage documentation

Testing

  • ✅ Unit tests for all capabilities
  • ✅ Integration tests for async operations
  • ✅ Error handling scenarios covered

Documentation

Complete usage documentation available in docs/providers/modelslab.md

@devsahm devsahm changed the title modelslab provider integration Feat: modelslab provider integration Feb 10, 2026
@devsahm devsahm changed the title Feat: modelslab provider integration feat: modelslab provider integration Feb 10, 2026
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