690601:2213 ADR-032-232 #10 fix: add typhoon-ocr1.5-3b option to sandbox engine selector
CI / CD Pipeline / build (push) Successful in 4m55s
CI / CD Pipeline / deploy (push) Successful in 7m55s

This commit is contained in:
2026-06-01 22:13:47 +07:00
parent 2cc07ee2e5
commit 7f35c3a585
2 changed files with 5 additions and 4 deletions
@@ -108,7 +108,7 @@ export default function OcrSandboxPromptManager() {
// 2-step flow states // 2-step flow states
const [sandboxStep, setSandboxStep] = useState<'ocr' | 'ai'>('ocr'); const [sandboxStep, setSandboxStep] = useState<'ocr' | 'ai'>('ocr');
const [selectedOcrEngine, setSelectedOcrEngine] = useState< const [selectedOcrEngine, setSelectedOcrEngine] = useState<
'auto' | 'tesseract' | 'typhoon-ocr-3b' 'auto' | 'tesseract' | 'typhoon-ocr-3b' | 'typhoon-ocr1.5-3b'
>('auto'); >('auto');
const [ocrResult, setOcrResult] = useState<{ const [ocrResult, setOcrResult] = useState<{
requestPublicId: string; requestPublicId: string;
@@ -386,14 +386,15 @@ export default function OcrSandboxPromptManager() {
value={selectedOcrEngine} value={selectedOcrEngine}
onChange={(e) => onChange={(e) =>
setSelectedOcrEngine( setSelectedOcrEngine(
e.target.value as 'auto' | 'tesseract' | 'typhoon-ocr-3b' e.target.value as 'auto' | 'tesseract' | 'typhoon-ocr-3b' | 'typhoon-ocr1.5-3b'
) )
} }
className="w-full rounded-md border border-input bg-background px-3 py-2 text-xs" className="w-full rounded-md border border-input bg-background px-3 py-2 text-xs"
> >
<option value="auto">Auto (Current Baseline)</option> <option value="auto">Auto (Current Baseline)</option>
<option value="tesseract">Tesseract OCR</option> <option value="tesseract">Tesseract OCR</option>
<option value="typhoon-ocr-3b">Typhoon OCR-3B</option> <option value="typhoon-ocr-3b">Typhoon OCR-3B (v1.0)</option>
<option value="typhoon-ocr1.5-3b">Typhoon OCR-3B (v1.5)</option>
</select> </select>
</div> </div>
<div <div
+1 -1
View File
@@ -170,7 +170,7 @@ export const adminAiService = {
submitSandboxOcr: async ( submitSandboxOcr: async (
file: File, file: File,
engineType: 'auto' | 'tesseract' | 'typhoon-ocr-3b' = 'auto' engineType: 'auto' | 'tesseract' | 'typhoon-ocr-3b' | 'typhoon-ocr1.5-3b' = 'auto'
): Promise<{ requestPublicId: string; jobId: string; status: string }> => { ): Promise<{ requestPublicId: string; jobId: string; status: string }> => {
const formData = new FormData(); const formData = new FormData();
formData.append('file', file); formData.append('file', file);