Skip to content

Commit

Permalink
fix: cannot send message when debug with multiple model with conversa… (
Browse files Browse the repository at this point in the history
  • Loading branch information
xuzuodong authored Dec 4, 2024
1 parent 1bae9b8 commit 16a65cb
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ import { useAppContext } from '@/context/app-context'
import { ModelFeatureEnum } from '@/app/components/header/account-setting/model-provider-page/declarations'
import { useFeatures } from '@/app/components/base/features/hooks'
import type { InputForm } from '@/app/components/base/chat/chat/type'
import { getLastAnswer } from '@/app/components/base/chat/utils'

type ChatItemProps = {
modelAndParameter: ModelAndParameter
Expand Down Expand Up @@ -101,7 +102,7 @@ const ChatItem: FC<ChatItemProps> = ({
query: message,
inputs,
model_config: configData,
parent_message_id: chatListRef.current.at(-1)?.id || null,
parent_message_id: getLastAnswer(chatListRef.current)?.id || null,
}

if ((config.file_upload as any).enabled && files?.length && supportVision)
Expand Down

0 comments on commit 16a65cb

Please sign in to comment.