Skip to content

Commit 89ecda6

Browse files
committed
dont pass aimodel name or description when creating a new one
1 parent 339ff1e commit 89ecda6

File tree

1 file changed

+4
-7
lines changed
  • app/[locale]/dashboard/[entityType]/[entitySlug]/aimodels

1 file changed

+4
-7
lines changed

app/[locale]/dashboard/[entityType]/[entitySlug]/aimodels/page.tsx

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
'use client';
22

3-
import { useEffect } from 'react';
4-
import { useRouter } from 'next/navigation';
53
import { graphql } from '@/gql';
64
import { useMutation, useQuery } from '@tanstack/react-query';
75
import { parseAsString, useQueryState } from 'next-usequerystate';
6+
import { useRouter } from 'next/navigation';
87
import { Button, DataTable, Icon, IconButton, Text, toast } from 'opub-ui';
8+
import { useEffect } from 'react';
99
import { twMerge } from 'tailwind-merge';
1010

11-
import { GraphQL } from '@/lib/api';
12-
import { formatDate } from '@/lib/utils';
1311
import { Icons } from '@/components/icons';
1412
import { LinkButton } from '@/components/Link';
1513
import { Loading } from '@/components/loading';
14+
import { GraphQL } from '@/lib/api';
15+
import { formatDate } from '@/lib/utils';
1616
import { ActionBar } from '../dataset/components/action-bar';
1717
import { Navigation } from '../dataset/components/navigate-org-datasets';
1818

@@ -147,9 +147,6 @@ export default function AIModelsPage({
147147
},
148148
{
149149
input: {
150-
name: 'new-model',
151-
displayName: 'New Model',
152-
description: 'A new AI model',
153150
modelType: 'TEXT_GENERATION',
154151
provider: 'CUSTOM',
155152
},

0 commit comments

Comments
 (0)