Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions web/src/components/ocr/OCRPlayground.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {Textarea} from '@/components/ui/textarea';
import {Input} from '@/components/ui/input';
import {Tabs, TabsContent, TabsList, TabsTrigger} from '@/components/ui/tabs';
import {Label} from '@/components/ui/label';
import {ocr_host} from '@/config';
import {api_host} from '@/config';
import {useUser} from "@/lib/context/user-context";
import {Alert, AlertDescription} from '@/components/ui/alert';
import {Upload, Link as LinkIcon, FileText, Code} from 'lucide-react';
Expand Down Expand Up @@ -146,7 +146,7 @@ export default function OCRPlayground({title, apiEndpoint, description}: OCRPlay

try {
const protocol = typeof window !== 'undefined' ? window.location.protocol : 'http:';
const host = ocr_host
const host = api_host
// 构建请求体
const requestBody: any = {
model: model,
Expand Down
3 changes: 1 addition & 2 deletions web/src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,4 @@ export const apikey_quota_apply_url = process.env.NEXT_PUBLIC_APIKEY_QUOTA_APPLY
export const safety_apply_url = process.env.NEXT_PUBLIC_SAFETY_APPLY_URL
export const agent_url = process.env.NEXT_PUBLIC_AGENT_URL
export const workflow_playground = process.env.NEXT_PUBLIC_WORKFLOW_PLAYGROUND
export const document_parse_playground = process.env.NEXT_PUBLIC_DOCUMENT_PARSE_PLAYGROUND
export const ocr_host = process.env.NEXT_PUBLIC_OCR_HOST
export const document_parse_playground = process.env.NEXT_PUBLIC_DOCUMENT_PARSE_PLAYGROUND