Cline所有Provicer都支持自定义API URL

This commit is contained in:
xintaofei
2026-03-28 20:25:07 +08:00
parent d75f94acf3
commit 356d1fbd88

View File

@@ -5875,27 +5875,21 @@ supports_websockets = true`}
/> />
</div> </div>
{(selectedDraft.clineProvider === "anthropic" || <div className="space-y-1.5">
selectedDraft.clineProvider === "openai-native" || <label className="text-[11px] text-muted-foreground">
selectedDraft.clineProvider === "openai" || API URL
selectedDraft.clineProvider === "openrouter" || </label>
selectedDraft.clineProvider === "ollama") && ( <Input
<div className="space-y-1.5"> value={selectedDraft.clineBaseUrl}
<label className="text-[11px] text-muted-foreground"> onChange={(event) => {
API URL handleClineFieldChange(
</label> "clineBaseUrl",
<Input event.target.value
value={selectedDraft.clineBaseUrl} )
onChange={(event) => { }}
handleClineFieldChange( placeholder="https://api.openai.com"
"clineBaseUrl", />
event.target.value </div>
)
}}
placeholder="https://api.openai.com"
/>
</div>
)}
<div className="space-y-1.5"> <div className="space-y-1.5">
<label className="text-[11px] text-muted-foreground"> <label className="text-[11px] text-muted-foreground">