upddate
This commit is contained in:
1 parent
ff6c2df618
commit
43cfaa0411
18 files changed
+683
-299
No files matched your search
@@ -23,8 +23,11 @@ func TestAllBundledLanguageRules(t *testing.T) {
|
||||
if len(prompt) > 8000 {
|
||||
t.Fatalf("too long %s", lang)
|
||||
}
|
||||
if strings.Contains(prompt, "{{attrs}}") {
|
||||
t.Fatalf("unexpected placeholder in prelocalized instruction %s", lang)
|
||||
if !strings.Contains(prompt, "{{attrs}}") || !strings.Contains(prompt, "{{name}}") {
|
||||
t.Fatalf("localized instruction %s missing product evidence placeholders", lang)
|
||||
}
|
||||
if !strings.Contains(prompt, "<p>{") || !strings.Contains(prompt, "<h2>{") || !strings.Contains(prompt, "<ul><li>{") {
|
||||
t.Fatalf("localized instruction %s missing structured HTML", lang)
|
||||
}
|
||||
}
|
||||
if _, err := OfflineDefaultPrompt("invalid"); err == nil {
|
||||
|
||||
Reference in new issue
Block a user