Compare commits

...
Author SHA1 Message Date
Aiden Cline ef80d4df4e Infer PDF modality for xAI image models 2026-05-20 18:12:11 -05:00
Aiden Cline af0ef00109 Update xAI Grok PDF modalities 2026-05-20 18:06:33 -05:00
6 changed files with 6 additions and 5 deletions

No files matched your search

+1
View File
@@ -128,6 +128,7 @@ function modalities(values: string[] | undefined, fallback: Modality[]) {
const result = (values ?? [])
.map((value) => value.toLowerCase())
.filter((value): value is Modality => allowed.has(value as Modality));
if (result.includes("image")) result.push("pdf");
return [...new Set(result.length > 0 ? result : fallback)];
}
@@ -24,5 +24,5 @@ context = 2_000_000
output = 30_000
[modalities]
input = ["text", "image"]
input = ["text", "image", "pdf"]
output = ["text"]
@@ -24,5 +24,5 @@ context = 2_000_000
output = 30_000
[modalities]
input = ["text", "image"]
input = ["text", "image", "pdf"]
output = ["text"]
@@ -24,5 +24,5 @@ context = 2_000_000
output = 30_000
[modalities]
input = ["text", "image"]
input = ["text", "image", "pdf"]
output = ["text"]
+1 -1
View File
@@ -24,5 +24,5 @@ context = 1_000_000
output = 30_000
[modalities]
input = ["text", "image"]
input = ["text", "image", "pdf"]
output = ["text"]
+1 -1
View File
@@ -19,5 +19,5 @@ context = 256_000
output = 256_000
[modalities]
input = ["text", "image"]
input = ["text", "image", "pdf"]
output = ["text"]