chore: update types and imports (#1594)

This commit is contained in:
Lily Delalande
2025-03-10 11:23:46 -07:00
committed by GitHub
parent c95a15a38c
commit 8689d24407
2 changed files with 2 additions and 10 deletions

View File

@@ -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';

View File

@@ -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: {