Fix: infinite loading not work when message is too short (#5075)

This commit is contained in:
KVOJJJin 2024-06-12 08:23:39 +08:00 committed by GitHub
parent 2050a8b8f0
commit 5f104bab57
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -185,7 +185,7 @@ function DetailPanel<T extends ChatConversationFullDetailResponse | CompletionCo
return return
const params: ChatMessagesRequest = { const params: ChatMessagesRequest = {
conversation_id: detail.id, conversation_id: detail.id,
limit: 4, limit: 10,
} }
if (items?.[0]?.id) if (items?.[0]?.id)
params.first_id = items?.[0]?.id.replace('question-', '') params.first_id = items?.[0]?.id.replace('question-', '')