Skip to content

Commit

Permalink
refactor: Remove deprecated models
Browse files Browse the repository at this point in the history
chore: CSS style adjustment
  • Loading branch information
Amery2010 committed Feb 15, 2025
1 parent 03665a4 commit 88c6330
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 9 deletions.
2 changes: 1 addition & 1 deletion app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -945,7 +945,7 @@ export default function Home() {
<div className="ml-1 flex-1 max-sm:ml-0.5">
<h2 className="text-line-clamp break-all font-bold leading-6 max-sm:text-sm">{conversationTitle}</h2>
<ModelSelect
className="flex h-4 justify-start border-none px-0 py-0 leading-4 text-slate-500 hover:text-slate-700 dark:hover:text-slate-400"
className="flex h-4 justify-start border-none px-0 py-0 text-left leading-4 text-slate-500 hover:text-slate-700 dark:hover:text-slate-400"
defaultModel={model}
/>
</div>
Expand Down
3 changes: 1 addition & 2 deletions components/SystemInstruction.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ import { useSettingStore } from '@/store/setting'
import { GEMINI_API_BASE_URL } from '@/constant/urls'
import { encodeToken } from '@/utils/signature'
import optimizePrompt, { type RequestProps } from '@/utils/optimizePrompt'
import { upperFirst } from 'lodash-es'

const formSchema = z.object({
content: z.string(),
Expand Down Expand Up @@ -79,7 +78,7 @@ function SystemInstruction() {
}, [systemInstruction])

return (
<Card>
<Card className="dark:border-slate-500">
<CardHeader className="flex flex-row justify-between space-y-0 px-4 pb-1 pt-3">
<CardTitle className="inline-flex text-lg font-medium">
{t('assistantSetting')}{' '}
Expand Down
6 changes: 0 additions & 6 deletions constant/model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,6 @@ export const Model: Record<string, string> = {
'gemini-1.5-flash-latest': 'Gemini 1.5 Flash Latest',
'gemini-1.5-flash-8b': 'Gemini 1.5 Flash-8B',
'gemini-1.5-flash-8b-latest': 'Gemini 1.5 Flash-8B Latest',
'gemini-1.0-pro-vision': 'Gemini 1.0 Pro Vision',
'gemini-1.0-pro-vision-latest': 'Gemini 1.0 Pro Vision Latest',
'gemini-1.0-pro': 'Gemini 1.0 Pro',
'gemini-1.0-pro-latest': 'Gemini 1.0 Pro Latest',
'gemini-pro-vision': 'Gemini Pro Vision',
'gemini-pro': 'Gemini Pro',
}

export const OldVisionModel = ['gemini-pro-vision', 'gemini-1.0-pro-vision-latest']
Expand Down

0 comments on commit 88c6330

Please sign in to comment.