Skip to content

Commit 316a911

Browse files
Sean-LLfengyizhu
authored andcommitted
ocr: ocr_host->api_host
1 parent 7eaec54 commit 316a911

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

web/src/components/ocr/OCRPlayground.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import {Textarea} from '@/components/ui/textarea';
77
import {Input} from '@/components/ui/input';
88
import {Tabs, TabsContent, TabsList, TabsTrigger} from '@/components/ui/tabs';
99
import {Label} from '@/components/ui/label';
10-
import {ocr_host} from '@/config';
10+
import {api_host} from '@/config';
1111
import {useUser} from "@/lib/context/user-context";
1212
import {Alert, AlertDescription} from '@/components/ui/alert';
1313
import {Upload, Link as LinkIcon, FileText, Code} from 'lucide-react';
@@ -146,7 +146,7 @@ export default function OCRPlayground({title, apiEndpoint, description}: OCRPlay
146146

147147
try {
148148
const protocol = typeof window !== 'undefined' ? window.location.protocol : 'http:';
149-
const host = ocr_host
149+
const host = api_host
150150
// 构建请求体
151151
const requestBody: any = {
152152
model: model,

web/src/config.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,4 @@ export const apikey_quota_apply_url = process.env.NEXT_PUBLIC_APIKEY_QUOTA_APPLY
33
export const safety_apply_url = process.env.NEXT_PUBLIC_SAFETY_APPLY_URL
44
export const agent_url = process.env.NEXT_PUBLIC_AGENT_URL
55
export const workflow_playground = process.env.NEXT_PUBLIC_WORKFLOW_PLAYGROUND
6-
export const document_parse_playground = process.env.NEXT_PUBLIC_DOCUMENT_PARSE_PLAYGROUND
7-
export const ocr_host = process.env.NEXT_PUBLIC_OCR_HOST
6+
export const document_parse_playground = process.env.NEXT_PUBLIC_DOCUMENT_PARSE_PLAYGROUND

0 commit comments

Comments
 (0)