diff --git a/ui/desktop/src/components/BottomMenu.tsx b/ui/desktop/src/components/BottomMenu.tsx index 83cfbfaf..30ece268 100644 --- a/ui/desktop/src/components/BottomMenu.tsx +++ b/ui/desktop/src/components/BottomMenu.tsx @@ -4,7 +4,7 @@ import { useRecentModels } from './settings/models/RecentModels'; // Hook for re import { Sliders } from 'lucide-react'; import { ModelRadioList } from './settings/models/ModelRadioList'; import { Document, ChevronUp, ChevronDown } from './icons'; -import type { View } from '../ChatWindow'; +import type { View } from '../App'; import { getApiUrl, getSecretKey } from '../config'; import { BottomMenuModeSelection } from './BottomMenuModeSelection'; diff --git a/ui/desktop/src/components/settings/models/ModelRadioList.tsx b/ui/desktop/src/components/settings/models/ModelRadioList.tsx index 358f40cf..7fd4eac8 100644 --- a/ui/desktop/src/components/settings/models/ModelRadioList.tsx +++ b/ui/desktop/src/components/settings/models/ModelRadioList.tsx @@ -1,16 +1,8 @@ import React, { useState, useEffect } from 'react'; import { useRecentModels } from './RecentModels'; -import { useModel } from './ModelContext'; +import { useModel, Model } from './ModelContext'; import { useHandleModelSelection } from './utils'; import type { View } from '@/src/App'; -import { SettingsViewOptions } from '@/src/components/settings/SettingsView'; - -export interface Model { - id?: number; // Make `id` optional to allow user-defined models - name: string; - provider: string; - lastUsed?: string; -} interface ModelRadioListProps { renderItem: (props: {