Skip to content

Commit

Permalink
refactor(core): update conversation queue length retrieval
Browse files Browse the repository at this point in the history
- Changed the parameter for retrieving the current queue length in the ChatInterfaceWrapper class from `platform` to `conversationId`, ensuring the correct context is used for queue management.
- This update aims to improve the accuracy of queue length tracking within the chat service.
  • Loading branch information
dingyi222666 committed Dec 13, 2024
1 parent cf832ab commit 1d00795
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/services/chat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -762,7 +762,7 @@ class ChatInterfaceWrapper {
])

const currentQueueLength =
await this._conversationQueue.getQueueLength(platform)
await this._conversationQueue.getQueueLength(conversationId)
await event['llm-queue-waiting'](currentQueueLength)

// Wait for our turn
Expand Down

0 comments on commit 1d00795

Please sign in to comment.