fix(qwen): align with dashscope 1.25.21 API; remove InvalidApiKey monkey-patch
This commit is contained in:
@@ -41,8 +41,8 @@ def test_qwen_tool_format_translation() -> None:
|
||||
def test_qwen_error_classification() -> None:
|
||||
from src.ai_client import ProviderError
|
||||
from src.qwen_adapter import classify_dashscope_error
|
||||
import dashscope
|
||||
err = classify_dashscope_error(dashscope.common.error.InvalidApiKey("bad key"))
|
||||
from dashscope.common.error import AuthenticationError
|
||||
err = classify_dashscope_error(AuthenticationError("bad key"))
|
||||
assert err.kind == "auth"
|
||||
assert err.provider == "qwen"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user