690604:1008 ADR-034-134 #04
CI / CD Pipeline / build (push) Successful in 4m58s
CI / CD Pipeline / deploy (push) Successful in 7m33s

This commit is contained in:
2026-06-04 10:08:22 +07:00
parent fb224a116c
commit b79895e6fb
7 changed files with 160 additions and 36 deletions
+11 -1
View File
@@ -228,11 +228,21 @@ export const adminAiService = {
submitSandboxOcr: async (
file: File,
engineType: string = 'auto'
engineType: string = 'auto',
typhoonOptions?: { temperature?: number; topP?: number; repeatPenalty?: number }
): Promise<{ requestPublicId: string; jobId: string; status: string }> => {
const formData = new FormData();
formData.append('file', file);
formData.append('engineType', engineType);
if (typhoonOptions?.temperature !== undefined) {
formData.append('temperature', String(typhoonOptions.temperature));
}
if (typhoonOptions?.topP !== undefined) {
formData.append('topP', String(typhoonOptions.topP));
}
if (typhoonOptions?.repeatPenalty !== undefined) {
formData.append('repeatPenalty', String(typhoonOptions.repeatPenalty));
}
const { data } = await api.post('/ai/admin/sandbox/ocr', formData, {
headers: {
'Content-Type': 'multipart/form-data',