| QwenProcessor | R Documentation |
Qwen API Processor
Qwen API Processor
Concrete implementation of BaseAPIProcessor for Qwen models. Handles Qwen-specific API calls, authentication, and response parsing.
Qwen has two API endpoints:
International: https://dashscope-intl.aliyuncs.com/api/v1/services/aigc/text-generation/generation (preferred)
Domestic (China): https://dashscope.aliyuncs.com/api/v1/services/aigc/text-generation/generation (fallback) The processor automatically tries international first, then falls back to domestic if needed.
mLLMCelltype::BaseAPIProcessor -> QwenProcessor
new()Test if an endpoint is accessible
Initialize Qwen processor
QwenProcessor$new(base_url = NULL)
get_default_api_url()Get default Qwen API URL with intelligent endpoint selection
QwenProcessor$get_default_api_url()
get_working_api_url()Get working Qwen API URL with automatic endpoint detection
QwenProcessor$get_working_api_url(api_key)
make_api_call()Make API call to Qwen
QwenProcessor$make_api_call(chunk_content, model, api_key)
extract_response_content()Extract response content from Qwen API response
QwenProcessor$extract_response_content(response, model)
clone()The objects of this class are cloneable with this method.
QwenProcessor$clone(deep = FALSE)
deepWhether to make a deep clone.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.