feat/public-release-prep #25
@ -110,7 +110,7 @@ export default function AIProviders() {
|
|||||||
|
|
||||||
const startEdit = (index: number) => {
|
const startEdit = (index: number) => {
|
||||||
const provider = ai_providers[index];
|
const provider = ai_providers[index];
|
||||||
const apiFormat = normalizeApiFormat(provider.api_format);
|
const apiFormat = provider.api_format;
|
||||||
const nextForm = { ...provider, api_format: apiFormat };
|
const nextForm = { ...provider, api_format: apiFormat };
|
||||||
|
|
||||||
setForm(nextForm);
|
setForm(nextForm);
|
||||||
@ -329,7 +329,7 @@ export default function AIProviders() {
|
|||||||
placeholder="sk-..."
|
placeholder="sk-..."
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
{!(form.provider_type === "custom" && normalizeApiFormat(form.api_format) === CUSTOM_REST_FORMAT) && (
|
{!(form.provider_type === "custom" && form.api_format === CUSTOM_REST_FORMAT) && (
|
||||||
<div className="space-y-2">
|
<div className="space-y-2">
|
||||||
<Label>Model</Label>
|
<Label>Model</Label>
|
||||||
<Input
|
<Input
|
||||||
@ -447,7 +447,7 @@ export default function AIProviders() {
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
{/* Custom REST specific: User ID field */}
|
{/* Custom REST specific: User ID field */}
|
||||||
{normalizeApiFormat(form.api_format) === CUSTOM_REST_FORMAT && (
|
{form.api_format === CUSTOM_REST_FORMAT && (
|
||||||
<div className="space-y-2">
|
<div className="space-y-2">
|
||||||
<Label>Email Address</Label>
|
<Label>Email Address</Label>
|
||||||
<Input
|
<Input
|
||||||
@ -462,7 +462,7 @@ export default function AIProviders() {
|
|||||||
)}
|
)}
|
||||||
|
|
||||||
{/* Custom REST specific: model dropdown with custom option */}
|
{/* Custom REST specific: model dropdown with custom option */}
|
||||||
{normalizeApiFormat(form.api_format) === CUSTOM_REST_FORMAT && (
|
{form.api_format === CUSTOM_REST_FORMAT && (
|
||||||
<div className="space-y-2">
|
<div className="space-y-2">
|
||||||
<Label>Model</Label>
|
<Label>Model</Label>
|
||||||
<Select
|
<Select
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user