glean/models/qwen
Alibaba Qwen models (DashScope, international endpoint).
Hybrid thinking models take enable_thinking; set it with
configure(config.extra_body_field(_, "enable_thinking", json.bool(True))).
For the China endpoint or a workspace URL, set config.base_url.
Types
Values
pub fn configure(
m: Qwen,
f: fn(config.ProviderConfig) -> config.ProviderConfig,
) -> Qwen
Change the provider configuration: base URL, timeout, headers, retries.
|> configure(config.timeout(_, 120_000))
pub fn custom(
api_key key: String,
model model_id: String,
) -> Qwen
Any other model ID served by this API, such as one released after this version of glean. Only this module’s setters are available, so check the model accepts them.
pub fn qwen3_5_flash(api_key key: String) -> Qwen
Qwen3.5 Flash. Model ID: qwen3.5-flash.
pub fn qwen3_5_plus(api_key key: String) -> Qwen
Qwen3.5 Plus. Model ID: qwen3.5-plus.
pub fn qwen3_7_plus(api_key key: String) -> Qwen
Qwen3.7 Plus. Model ID: qwen3.7-plus.
pub fn qwen3_8_flash(api_key key: String) -> Qwen
Qwen3.8 Flash. Model ID: qwen3.8-flash.
pub fn qwen3_coder_plus(api_key key: String) -> Qwen
Qwen3 Coder Plus. Model ID: qwen3-coder-plus.