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