Do not allow custom models for (dyad/auto) & drive-by: key improvement (#156)
This commit is contained in:
@@ -84,7 +84,7 @@ export function ModelsSection({ providerId }: ModelsSectionProps) {
|
|||||||
<div className="mt-4 space-y-3">
|
<div className="mt-4 space-y-3">
|
||||||
{models.map((model) => (
|
{models.map((model) => (
|
||||||
<div
|
<div
|
||||||
key={model.apiName}
|
key={model.apiName + model.displayName}
|
||||||
className="p-4 bg-white dark:bg-gray-800 border border-gray-200 dark:border-gray-700 rounded-lg shadow-sm"
|
className="p-4 bg-white dark:bg-gray-800 border border-gray-200 dark:border-gray-700 rounded-lg shadow-sm"
|
||||||
>
|
>
|
||||||
<div className="flex justify-between items-center">
|
<div className="flex justify-between items-center">
|
||||||
@@ -145,6 +145,7 @@ export function ModelsSection({ providerId }: ModelsSectionProps) {
|
|||||||
)}
|
)}
|
||||||
{/* End Custom Models List Area */}
|
{/* End Custom Models List Area */}
|
||||||
|
|
||||||
|
{providerId !== "auto" && (
|
||||||
<Button
|
<Button
|
||||||
onClick={() => setIsCustomModelDialogOpen(true)}
|
onClick={() => setIsCustomModelDialogOpen(true)}
|
||||||
variant="outline"
|
variant="outline"
|
||||||
@@ -152,6 +153,7 @@ export function ModelsSection({ providerId }: ModelsSectionProps) {
|
|||||||
>
|
>
|
||||||
<PlusIcon className="mr-2 h-4 w-4" /> Add Custom Model
|
<PlusIcon className="mr-2 h-4 w-4" /> Add Custom Model
|
||||||
</Button>
|
</Button>
|
||||||
|
)}
|
||||||
|
|
||||||
{/* Render the dialog */}
|
{/* Render the dialog */}
|
||||||
<CreateCustomModelDialog
|
<CreateCustomModelDialog
|
||||||
|
|||||||
Reference in New Issue
Block a user