feat(runner): support auth_type for model configuration

- Add ModelSpec dataclass to hold model name and optional auth_type
- Update RunConfig.models to use List[ModelSpec]
- Add auth_type field to RunRecord with serialization support
- Parse models from config as string or {name, auth_type} dict
- Pass --auth-type flag to qwen command when specified

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
This commit is contained in:
pomelo-nwu 2026-02-19 11:55:30 +08:00
parent c6a723efef
commit b2b30c4c5d
2 changed files with 40 additions and 8 deletions

View file

@ -31,5 +31,9 @@
]
}
],
"models": ["claude-3-5-sonnet-20241022", "qwen3-coder-plus"]
"models": [
"qwen3-coder-plus",
{ "name": "glm-4.7", "auth_type": "anthropic" },
{ "name": "claude-4-5-sonnet-20260219", "auth_type": "anthropic" }
]
}