AI models

This commit is contained in:
mdecimus
2024-10-05 19:05:04 +02:00
parent d5c2dcb817
commit d0ce2b1a96
41 changed files with 1171 additions and 406 deletions

View File

@@ -1,4 +1,4 @@
require ["fileinto", "mailbox", "mailboxid", "special-use", "ihave", "imap4flags"];
require ["fileinto", "mailbox", "mailboxid", "special-use", "ihave", "imap4flags", "vnd.stalwart.expressions"];
# SpecialUse extension tests
if not specialuse_exists ["inbox", "trash"] {
@@ -61,3 +61,6 @@ if not mailboxexists "My" {
error "'My' not found.";
}
if eval "llm_prompt('echo-test', 'hello world') != 'hello world'" {
error "llm_prompt is unavailable.";
}

View File

@@ -0,0 +1,72 @@
expect LLM_UNSOLICITED_HIGH
Subject: Unsolicited,High,Test
Test
<!-- NEXT TEST -->
expect LLM_COMMERCIAL_HIGH
Subject: Commercial,High,Test
Test
<!-- NEXT TEST -->
expect LLM_HARMFUL_HIGH
Subject: Harmful,High,Test
Test
<!-- NEXT TEST -->
expect LLM_LEGITIMATE_HIGH
Subject: Legitimate,High,Test
Test
<!-- NEXT TEST -->
expect LLM_UNSOLICITED_MEDIUM
Subject: Unsolicited,Medium,Test
Test
<!-- NEXT TEST -->
expect LLM_COMMERCIAL_MEDIUM
Subject: Commercial,Medium,Test
Test
<!-- NEXT TEST -->
expect LLM_HARMFUL_MEDIUM
Subject: Harmful,Medium,Test
Test
<!-- NEXT TEST -->
expect LLM_LEGITIMATE_MEDIUM
Subject: Legitimate,Medium,Test
Test
<!-- NEXT TEST -->
expect LLM_UNSOLICITED_LOW
Subject: Unsolicited,Low,Test
Test
<!-- NEXT TEST -->
expect LLM_COMMERCIAL_LOW
Subject: Commercial,Low,Test
Test
<!-- NEXT TEST -->
expect LLM_HARMFUL_LOW
Subject: Harmful,Low,Test
Test
<!-- NEXT TEST -->
expect LLM_LEGITIMATE_LOW
Subject: Legitimate,Low,Test
Test

View File

@@ -1,10 +0,0 @@
co.uk
org.uk
com
net
org
info
biz
*.wildcard
!test.wildcard
disposable.org