chore: update types and imports (#1594)
This commit is contained in:
@@ -4,7 +4,7 @@ import { useRecentModels } from './settings/models/RecentModels'; // Hook for re
|
|||||||
import { Sliders } from 'lucide-react';
|
import { Sliders } from 'lucide-react';
|
||||||
import { ModelRadioList } from './settings/models/ModelRadioList';
|
import { ModelRadioList } from './settings/models/ModelRadioList';
|
||||||
import { Document, ChevronUp, ChevronDown } from './icons';
|
import { Document, ChevronUp, ChevronDown } from './icons';
|
||||||
import type { View } from '../ChatWindow';
|
import type { View } from '../App';
|
||||||
import { getApiUrl, getSecretKey } from '../config';
|
import { getApiUrl, getSecretKey } from '../config';
|
||||||
import { BottomMenuModeSelection } from './BottomMenuModeSelection';
|
import { BottomMenuModeSelection } from './BottomMenuModeSelection';
|
||||||
|
|
||||||
|
|||||||
@@ -1,16 +1,8 @@
|
|||||||
import React, { useState, useEffect } from 'react';
|
import React, { useState, useEffect } from 'react';
|
||||||
import { useRecentModels } from './RecentModels';
|
import { useRecentModels } from './RecentModels';
|
||||||
import { useModel } from './ModelContext';
|
import { useModel, Model } from './ModelContext';
|
||||||
import { useHandleModelSelection } from './utils';
|
import { useHandleModelSelection } from './utils';
|
||||||
import type { View } from '@/src/App';
|
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 {
|
interface ModelRadioListProps {
|
||||||
renderItem: (props: {
|
renderItem: (props: {
|
||||||
|
|||||||
Reference in New Issue
Block a user