Always show the model id field for custom providers
This commit is contained in:
1 parent
35e1097041
commit
7dfe652eda
1 file changed
+3
-3
@@ -360,7 +360,7 @@ function ProviderCredentialFields({
|
|||||||
className="input"
|
className="input"
|
||||||
value={draft.providerBaseUrl}
|
value={draft.providerBaseUrl}
|
||||||
placeholder={selected.customEndpoint === "openai" ? "https://host/v1" : "https://host"}
|
placeholder={selected.customEndpoint === "openai" ? "https://host/v1" : "https://host"}
|
||||||
onChange={(event) => onChange({ providerBaseUrl: event.target.value, providerModel: "" })}
|
onChange={(event) => onChange({ providerBaseUrl: event.target.value })}
|
||||||
/>
|
/>
|
||||||
</Field>
|
</Field>
|
||||||
<Field label="API key">
|
<Field label="API key">
|
||||||
@@ -369,7 +369,7 @@ function ProviderCredentialFields({
|
|||||||
type="password"
|
type="password"
|
||||||
autoComplete="off"
|
autoComplete="off"
|
||||||
value={draft.providerSecret}
|
value={draft.providerSecret}
|
||||||
onChange={(event) => onChange({ providerSecret: event.target.value, providerModel: "" })}
|
onChange={(event) => onChange({ providerSecret: event.target.value })}
|
||||||
/>
|
/>
|
||||||
</Field>
|
</Field>
|
||||||
</>
|
</>
|
||||||
@@ -390,7 +390,7 @@ function ProviderCredentialFields({
|
|||||||
</Button>
|
</Button>
|
||||||
)}
|
)}
|
||||||
{loadError && <div style={{ color: "var(--red)", fontSize: 12 }}>{loadError}</div>}
|
{loadError && <div style={{ color: "var(--red)", fontSize: 12 }}>{loadError}</div>}
|
||||||
{hasCredential && (
|
{(hasCredential || isCustom) && (
|
||||||
<Field label="Model">
|
<Field label="Model">
|
||||||
{fetched || showCuratedList ? (
|
{fetched || showCuratedList ? (
|
||||||
<select
|
<select
|
||||||
|
|||||||
Reference in new issue
Block a user