diff --git a/apps/ui/src/Route.tsx b/apps/ui/src/Route.tsx index 992531f9b..3d19000bb 100644 --- a/apps/ui/src/Route.tsx +++ b/apps/ui/src/Route.tsx @@ -46,10 +46,6 @@ import DevelopersRouteLayout from 'routes/DevelopersRouteLayout' import CommandMenu from 'components/CommandMenu/CommandMenu' import RootLayout from 'routes/RootLayout' -import CreateAgentModal from 'modals/CreateAgentModal' -import EditAgentModal from 'modals/EditAgentModal' -import CreateDatasourceModal from 'modals/CreateDatasourceModal' -import EditDatasourceModal from 'modals/EditDatasourceModal' import Datasource from 'pages/Datasource' import TeamOfAgents from 'pages/TeamOfAgents' @@ -90,7 +86,6 @@ import CreateGroupForm from 'plugins/contact/pages/Group/GroupForm/CreateGroupFo import EditGroupForm from 'plugins/contact/pages/Group/GroupForm/EditGroupForm' import ScheduleRunModal from 'modals/ScheduleRunModal' import RunLogsModal from 'modals/RunLogsModal/RunLogsModal' -import CreateFineTuningModal from 'modals/CreateFineTuningModal' import CreateFineTuningForm from 'pages/Models/FineTuning/FineTuningForm/CreateFineTuningForm' import EditFineTuningForm from 'pages/Models/FineTuning/FineTuningForm/EditFineTuningForm' import Integrations from 'pages/Integrations' @@ -341,10 +336,6 @@ const Route = () => { - - - - diff --git a/apps/ui/src/gql/chat/aiMedia.gql b/apps/ui/src/gql/chat/aiMedia.gql deleted file mode 100644 index f71581c86..000000000 --- a/apps/ui/src/gql/chat/aiMedia.gql +++ /dev/null @@ -1,6 +0,0 @@ -query aiMedia($id: ID!) @api(name: game) { - aiMedia(id: $id) { - id - media - } -} diff --git a/apps/ui/src/gql/chat/generateAiMedias.gql b/apps/ui/src/gql/chat/generateAiMedias.gql deleted file mode 100644 index eb5af0357..000000000 --- a/apps/ui/src/gql/chat/generateAiMedias.gql +++ /dev/null @@ -1,6 +0,0 @@ -mutation generateAiMedias($prompt: String!) @api(name: game) { - generateAiMedias(prompt: $prompt) { - id - media - } -} diff --git a/apps/ui/src/gql/chat/removeMediaBackground.gql b/apps/ui/src/gql/chat/removeMediaBackground.gql deleted file mode 100644 index 433fbe5f9..000000000 --- a/apps/ui/src/gql/chat/removeMediaBackground.gql +++ /dev/null @@ -1,3 +0,0 @@ -mutation removeMediaBackground($id: ID!) @api(name: game) { - removeMediaBackground(id: $id) -} diff --git a/apps/ui/src/gql/chat/upscaleAiMedia.gql b/apps/ui/src/gql/chat/upscaleAiMedia.gql deleted file mode 100644 index 3c0252165..000000000 --- a/apps/ui/src/gql/chat/upscaleAiMedia.gql +++ /dev/null @@ -1,6 +0,0 @@ -mutation upscaleAiMedia($id: ID!, $button: String!) @api(name: game) { - upscaleAiMedia(id: $id, button: $button) { - id - media - } -} diff --git a/apps/ui/src/helpers/navigationHelper.tsx b/apps/ui/src/helpers/navigationHelper.tsx deleted file mode 100644 index b626ef456..000000000 --- a/apps/ui/src/helpers/navigationHelper.tsx +++ /dev/null @@ -1,47 +0,0 @@ -import HomeIconSvg from '../assets/svgComponents/HomeIconSvg' -import WalletIconSvg from '../assets/svgComponents/WalletIconSvg' -import About from '@l3-lib/ui-core/dist/icons/About' -import API from '@l3-lib/ui-core/dist/icons/API' -import Doc from '@l3-lib/ui-core/dist/icons/Doc' -import Games from '@l3-lib/ui-core/dist/icons/Games' -import Teams from '@l3-lib/ui-core/dist/icons/Teams' -import Logs from '@l3-lib/ui-core/dist/icons/Logs' -import TagsOutline from '@l3-lib/ui-core/dist/icons/TagsOutline' - -const HEADER_DATA = [ - { name: 'home', routeLink: '/', icon: }, - // { name: "sessions", routeLink: "/sessions", icon: }, - // { name: "saved", routeLink: "/saved", icon: }, - { name: 'Settings', routeLink: '/settings', icon: }, -] - -const menuItemList = [ - { name: 'Home', routeLink: '/', icon: About, active: 'home' }, - { name: 'Games', routeLink: 'game', icon: Games, active: 'game' }, - // { name: 'Settings', routeLink: '/settings', icon: Settings, active: 'settings' }, - // { name: 'Logs', routeLink: '/logs', icon: BulletList, active: 'logs' }, - { name: 'Teams', routeLink: '/teams', icon: Teams, active: 'teams' }, - // { name: 'API', routeLink: '/api-keys', icon: API, active: 'api-keys' }, - { name: 'Developers', routeLink: '/developers', icon: API, active: 'developers' }, - // { name: "Events", routeLink: "/events", icon: }, - // { name: 'Doc', routeLink: '/doc', icon: Doc, active: 'doc' }, - // {name:"Test", routeLink:"/fornite", icon:}, - // {name:"About", routeLink:"/about", icon:}, - // {name:"Collection", routeLink:"/collection/:id", icon:}, -] - -const DEVELOPERS_ITEM_LIST = [ - // { name: 'Overview', routeLink: 'overview', icon: Games, active: 'overview' }, - { name: 'API keys', routeLink: 'api-keys', icon: Games, active: 'api-keys' }, - { name: 'Logs', routeLink: 'logs', icon: Logs, active: 'logs' }, - { name: 'Webhooks', routeLink: 'webhook', icon: TagsOutline, active: 'webhook' }, - { - name: 'Docs', - // routeLink: 'docs', - icon: Doc, - active: 'new tab', - routeLink: 'https://docs.l3agi.com/docs', - }, -] - -export { HEADER_DATA, menuItemList, DEVELOPERS_ITEM_LIST } diff --git a/apps/ui/src/modals/AIChatModal/utils/checkKeys.ts b/apps/ui/src/modals/AIChatModal/utils/checkKeys.ts deleted file mode 100644 index 7edf2764d..000000000 --- a/apps/ui/src/modals/AIChatModal/utils/checkKeys.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { Configuration, OpenAIApi } from 'openai' - -export const checkApiKey = async (keys: string) => { - const configuration = new Configuration({ - apiKey: keys, - }) - - const openai = new OpenAIApi(configuration) - - return openai.listModels() -} diff --git a/apps/ui/src/modals/CreateAgentModal.tsx b/apps/ui/src/modals/CreateAgentModal.tsx deleted file mode 100644 index f4569ea55..000000000 --- a/apps/ui/src/modals/CreateAgentModal.tsx +++ /dev/null @@ -1,64 +0,0 @@ -import { FormikProvider } from 'formik' - -import withRenderModal from 'hocs/withRenderModal' - -import Modal from '@l3-lib/ui-core/dist/Modal' -import Button from '@l3-lib/ui-core/dist/Button' -import Typography from '@l3-lib/ui-core/dist/Typography' -import ModalFooter from '@l3-lib/ui-core/dist/ModalFooter' -import Loader from '@l3-lib/ui-core/dist/Loader' - -import styled from 'styled-components' - -import AgentForm from 'pages/Agents/AgentForm' -import { - StyledBody, - StyledCloseButton, - StyledFooter, - StyledFormContainer, - StyledHeader, - StyledHeaderText, - StyledSecondColumn, -} from './CreateDatasourceModal' -import { Footer } from 'components/Layout' -import Spotlight from 'components/Spotlight' - -const CreateAgentModal = () => { - // const { formik, handleSubmit, isLoading } = useAgents() - - return ( - // - // - // - // - // Create Agent - // - // - // - // - - // - // - - // - // - // - //