feat(dingtalk): add reasoning mode and support evidence

This commit is contained in:
姚章浩
2026-09-10 16:24:56 +08:00
parent 0798a2dac7
commit bfa1b1b25f
45 changed files with 2713 additions and 102 deletions
+15
View File
@@ -0,0 +1,15 @@
package reasoningmode
import "testing"
func TestResolveGuideLocaleUsesQuestionWhenPreferenceIsAuto(t *testing.T) {
if got := ResolveGuideLocale("auto", "How do I configure CRA?"); got != "en" {
t.Fatalf("English auto locale=%q", got)
}
if got := ResolveGuideLocale("auto", "如何配置CRA?"); got != "zh-CN" {
t.Fatalf("Chinese auto locale=%q", got)
}
if got := ResolveGuideLocale("ja", "English text"); got != "ja" {
t.Fatalf("explicit locale changed to %q", got)
}
}