feat(models): 注册 Kimi K3 和 Qwen3.8
This commit is contained in:
@@ -529,6 +529,36 @@ func TestOpenAIClientChatReasoningParamsByProvider(t *testing.T) {
|
||||
}
|
||||
},
|
||||
},
|
||||
{
|
||||
name: "aliyun qwen 3.8 preview preserves supported effort",
|
||||
provider: "aliyun-bailian-openai",
|
||||
model: "qwen3.8-max-preview",
|
||||
body: map[string]any{
|
||||
"reasoning_effort": "high",
|
||||
},
|
||||
assertion: func(t *testing.T, body map[string]any) {
|
||||
if body["enable_thinking"] != true || body["reasoning_effort"] != "xhigh" {
|
||||
t.Fatalf("aliyun qwen 3.8 should use xhigh reasoning effort, got %+v", body)
|
||||
}
|
||||
},
|
||||
},
|
||||
{
|
||||
name: "aliyun qwen 3.8 preview uses explicit budget exclusively",
|
||||
provider: "aliyun-bailian-openai",
|
||||
model: "qwen3.8-max-preview",
|
||||
body: map[string]any{
|
||||
"reasoning_effort": "medium",
|
||||
"thinking_budget_tokens": 16384,
|
||||
},
|
||||
assertion: func(t *testing.T, body map[string]any) {
|
||||
if body["enable_thinking"] != true || body["thinking_budget"] != float64(16384) {
|
||||
t.Fatalf("aliyun qwen 3.8 should use the explicit thinking budget, got %+v", body)
|
||||
}
|
||||
if _, ok := body["reasoning_effort"]; ok {
|
||||
t.Fatalf("aliyun qwen 3.8 must not combine reasoning effort with thinking budget: %+v", body)
|
||||
}
|
||||
},
|
||||
},
|
||||
{
|
||||
name: "same deepseek model on aliyun uses aliyun protocol",
|
||||
provider: "aliyun-bailian-openai",
|
||||
|
||||
Reference in New Issue
Block a user