We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parent3de946c commit0474412Copy full SHA for 0474412
web/src/components/ocr/OCRPlayground.tsx
@@ -7,7 +7,7 @@ import {Textarea} from '@/components/ui/textarea';
7
import{Input}from'@/components/ui/input';
8
import{Tabs,TabsContent,TabsList,TabsTrigger}from'@/components/ui/tabs';
9
import{Label}from'@/components/ui/label';
10
-import{api_host}from'@/config';
+import{ocr_host}from'@/config';
11
import{useUser}from"@/lib/context/user-context";
12
import{Alert,AlertDescription}from'@/components/ui/alert';
13
import{Upload,LinkasLinkIcon,FileText,Code}from'lucide-react';
@@ -146,8 +146,7 @@ export default function OCRPlayground({title, apiEndpoint, description}: OCRPlay
146
147
try{
148
constprotocol=typeofwindow!=='undefined' ?window.location.protocol :'http:';
149
-consthost=api_host||window.location.host;
150
-
+consthost=ocr_host
151
// 构建请求体
152
constrequestBody:any={
153
model:model,
web/src/config.ts
@@ -4,3 +4,4 @@ export const safety_apply_url = process.env.NEXT_PUBLIC_SAFETY_APPLY_URL
4
exportconstagent_url=process.env.NEXT_PUBLIC_AGENT_URL
5
exportconstworkflow_playground=process.env.NEXT_PUBLIC_WORKFLOW_PLAYGROUND
6
exportconstdocument_parse_playground=process.env.NEXT_PUBLIC_DOCUMENT_PARSE_PLAYGROUND
+exportconstocr_host=process.env.NEXT_PUBLIC_OCR_HOST