Cline所有Provicer都支持自定义API URL
This commit is contained in:
@@ -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">
|
||||||
|
|||||||
Reference in New Issue
Block a user