690601:2213 ADR-032-232 #10 fix: add typhoon-ocr1.5-3b option to sandbox engine selector
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user