1.添加了阿里千问模型,由于其不支持pydantic,补充了一些适配

HA
10mo ago
+222-7

Why

The original version does not support Alibaba Qwen model calls and flexible configuration of local browser executable paths.

What Changed

  1. Adapted Alibaba Qwen model (added compatibility for non-pydantic scenarios).
  2. Added executable_path configuration item to allow developers to specify local browser engines.

Test Plan

  • Tested Qwen model invocation in LOCAL mode (function normally).
  • Verified executable_path takes effect when specified, and uses default browser path when not specified.

Summary by cubic

Adds Alibaba Qwen model support in LOCAL mode and a new executable_path option to choose a local browser binary. This enables qwen-turbo/plus/max with JSON-safe responses and keeps metrics working.

  • New Features
    • Added QwenClient (DashScope chat/completions) and auto-select it for qwen-turbo, qwen-plus, qwen-max.
    • Supports response_format via json_schema/json_object; injects a system prompt to enforce strict JSON; normalizes elements[].arguments to a list.
    • Wrapped responses in a HybridDict to allow attribute-style access and preserve metrics callback behavior.
    • Added executable_path in local browser launch options; uses the provided path when set, otherwise defaults.