fix: add claude-3-5-sonnet-latest support #247

This commit is contained in:
kangfenmao 2024-10-28 16:40:09 +08:00
parent 73c2945961
commit 6f9eb2ae75
2 changed files with 3 additions and 3 deletions

View File

@ -381,13 +381,13 @@ export const SYSTEM_MODELS: Record<string, Model[]> = {
], ],
anthropic: [ anthropic: [
{ {
id: 'claude-3-5-sonnet-20240620', id: 'claude-3-5-sonnet-latest',
provider: 'anthropic', provider: 'anthropic',
name: 'Claude 3.5 Sonnet', name: 'Claude 3.5 Sonnet',
group: 'Claude 3.5' group: 'Claude 3.5'
}, },
{ {
id: 'claude-3-opus-20240229', id: 'claude-3-opus-latest',
provider: 'anthropic', provider: 'anthropic',
name: 'Claude 3 Opus', name: 'Claude 3 Opus',
group: 'Claude 3' group: 'Claude 3'

View File

@ -166,7 +166,7 @@ const Inputbar: FC<Props> = ({ assistant, setActiveTopic }) => {
const textArea = textareaRef.current?.resizableTextArea?.textArea const textArea = textareaRef.current?.resizableTextArea?.textArea
if (textArea) { if (textArea) {
textArea.style.height = 'auto' textArea.style.height = 'auto'
textArea.style.height = textArea?.scrollHeight > 400 ? '400px' : `${textArea?.scrollHeight}px` textArea.style.height = textArea?.scrollHeight > 400 ? '400px' : `${textArea?.scrollHeight + 2}px`
} }
} }