LLM
- class pipecat.services.qwen.llm.QwenLLMService(*, api_key, base_url='https://dashscope-intl.aliyuncs.com/compatible-mode/v1', model='qwen-plus', **kwargs)[source]
Bases:
OpenAILLMService
A service for interacting with Alibaba Cloud’s Qwen LLM API using the OpenAI-compatible interface.
This service extends OpenAILLMService to connect to Qwen’s API endpoint while maintaining full compatibility with OpenAI’s interface and functionality.
- Parameters:
api_key (str) – The API key for accessing Qwen’s API (DashScope API key)
base_url (str, optional) – Base URL for Qwen API. Defaults to “https://dashscope-intl.aliyuncs.com/compatible-mode/v1”
model (str, optional) – The model identifier to use. Defaults to “qwen-plus”.
**kwargs – Additional keyword arguments passed to OpenAILLMService
- create_client(api_key=None, base_url=None, **kwargs)[source]
Create OpenAI-compatible client for Qwen API endpoint.