Overview
QwenLLMService
provides access to Alibaba Cloud’s Qwen language models through an OpenAI-compatible interface. It inherits from OpenAILLMService
and supports streaming responses, function calling, and context management, with particularly strong capabilities for Chinese language processing.
Qwen LLM API Reference
Pipecat’s API methods for Qwen integration
Example Implementation
Complete example with function calling
Qwen Documentation
Official Qwen API documentation and features
Alibaba Cloud Console
Access Qwen models and manage API keys
Installation
To use Qwen services, install the required dependencies:Prerequisites
Qwen Account Setup
Before using Qwen LLM services, you need:- Alibaba Cloud Account: Sign up at Alibaba Cloud
- API Key: Generate an API key from your Model Studio dashboard
- Model Selection: Choose from available Qwen models with multilingual capabilities
Required Environment Variables
QWEN_API_KEY
: Your Qwen API key for authentication