Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit0474412

Browse files
Sean-LLfengyizhu
authored andcommitted
ocr: api_host->ocr_host
1 parent3de946c commit0474412

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

‎web/src/components/ocr/OCRPlayground.tsx‎

Lines changed: 2 additions & 3 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{api_host}from'@/config';
10+
import{ocr_host}from'@/config';
1111
import{useUser}from"@/lib/context/user-context";
1212
import{Alert,AlertDescription}from'@/components/ui/alert';
1313
import{Upload,LinkasLinkIcon,FileText,Code}from'lucide-react';
@@ -146,8 +146,7 @@ export default function OCRPlayground({title, apiEndpoint, description}: OCRPlay
146146

147147
try{
148148
constprotocol=typeofwindow!=='undefined' ?window.location.protocol :'http:';
149-
consthost=api_host||window.location.host;
150-
149+
consthost=ocr_host
151150
// 构建请求体
152151
constrequestBody:any={
153152
model:model,

‎web/src/config.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ export const safety_apply_url = process.env.NEXT_PUBLIC_SAFETY_APPLY_URL
44
exportconstagent_url=process.env.NEXT_PUBLIC_AGENT_URL
55
exportconstworkflow_playground=process.env.NEXT_PUBLIC_WORKFLOW_PLAYGROUND
66
exportconstdocument_parse_playground=process.env.NEXT_PUBLIC_DOCUMENT_PARSE_PLAYGROUND
7+
exportconstocr_host=process.env.NEXT_PUBLIC_OCR_HOST

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp