feat/public-release-prep #25

Merged
sarman merged 8 commits from feat/public-release-prep into master 2026-04-07 16:37:38 +00:00
Showing only changes of commit 0251397836 - Show all commits

View File

@ -110,7 +110,7 @@ export default function AIProviders() {
const startEdit = (index: number) => {
const provider = ai_providers[index];
const apiFormat = normalizeApiFormat(provider.api_format);
const apiFormat = provider.api_format;
const nextForm = { ...provider, api_format: apiFormat };
setForm(nextForm);
@ -329,7 +329,7 @@ export default function AIProviders() {
placeholder="sk-..."
/>
</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">
<Label>Model</Label>
<Input
@ -447,7 +447,7 @@ export default function AIProviders() {
</div>
{/* Custom REST specific: User ID field */}
{normalizeApiFormat(form.api_format) === CUSTOM_REST_FORMAT && (
{form.api_format === CUSTOM_REST_FORMAT && (
<div className="space-y-2">
<Label>Email Address</Label>
<Input
@ -462,7 +462,7 @@ export default function AIProviders() {
)}
{/* 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">
<Label>Model</Label>
<Select