mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-08-19 06:48:25 +08:00
fix(web): hide verify button for OpenAI-API-Compatible provider (#18380)
This commit is contained in:
@@ -80,13 +80,15 @@ export function DraftModeCard({
|
||||
<AimlapiGetKeyButton onKey={handleAimlapiKey} />
|
||||
)}
|
||||
|
||||
<div className="pt-3">
|
||||
<VerifyButton
|
||||
onVerify={handleVerify}
|
||||
isAbsolute={false}
|
||||
formRef={formRef}
|
||||
/>
|
||||
</div>
|
||||
{providerName !== LLMFactory.OpenAiAPICompatible && (
|
||||
<div className="pt-3">
|
||||
<VerifyButton
|
||||
onVerify={handleVerify}
|
||||
isAbsolute={false}
|
||||
formRef={formRef}
|
||||
/>
|
||||
</div>
|
||||
)}
|
||||
|
||||
<div className="pt-3">
|
||||
<ModelsSection
|
||||
|
||||
@@ -23,6 +23,7 @@ import {
|
||||
CollapsibleTrigger,
|
||||
} from '@/components/ui/collapsible';
|
||||
import { Input } from '@/components/ui/input';
|
||||
import { LLMFactory } from '@/constants/llm';
|
||||
import { useTranslate } from '@/hooks/common-hooks';
|
||||
import { ListChevronsDownUp, ListChevronsUpDown, Trash2 } from 'lucide-react';
|
||||
import {
|
||||
@@ -199,13 +200,15 @@ export function SavedModeCard({
|
||||
resetOptions={{ keepDirtyValues: true }}
|
||||
/>
|
||||
|
||||
<div className="pt-3">
|
||||
<VerifyButton
|
||||
onVerify={handleVerify}
|
||||
isAbsolute={false}
|
||||
formRef={formRef}
|
||||
/>
|
||||
</div>
|
||||
{providerName !== LLMFactory.OpenAiAPICompatible && (
|
||||
<div className="pt-3">
|
||||
<VerifyButton
|
||||
onVerify={handleVerify}
|
||||
isAbsolute={false}
|
||||
formRef={formRef}
|
||||
/>
|
||||
</div>
|
||||
)}
|
||||
|
||||
{open && (
|
||||
<div className="pt-3">
|
||||
|
||||
Reference in New Issue
Block a user