chatapi/src/utils/chat-assistant.utils.ts
Function createAndHandleRunWithStreaming
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export async function createAndHandleRunWithStreaming(
threadID: any, assistantID: any, callback?: (response: string) => void
): Promise<string> {
let completionText = '';