mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-05-01 05:00:46 +00:00
feat(DataProcessor): use constant for concurrency limit in pLimit calls
This commit is contained in:
parent
dd56345ac6
commit
e29aab478e
2 changed files with 6 additions and 10 deletions
|
|
@ -187,15 +187,9 @@ export const useSlashCommandProcessor = (
|
|||
progress: message.progress,
|
||||
};
|
||||
} else {
|
||||
// At this point message should be of type { type: INFO|ERROR|USER, content: string }
|
||||
// We cast to be sure or check existence of content
|
||||
const msg = message as {
|
||||
type: MessageType.INFO | MessageType.ERROR | MessageType.USER;
|
||||
content: string;
|
||||
};
|
||||
historyItemContent = {
|
||||
type: msg.type,
|
||||
text: msg.content,
|
||||
type: message.type,
|
||||
text: message.content,
|
||||
};
|
||||
}
|
||||
addItem(historyItemContent, message.timestamp.getTime());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue