open-learning-exchange/planet

View on GitHub
chatapi/src/utils/chat-assistant.utils.ts

Summary

Maintainability
A
1 hr
Test Coverage

Function createAndHandleRunWithStreaming has 36 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export async function createAndHandleRunWithStreaming(
  threadID: any, assistantID: any, callback?: (response: string) => void
): Promise<string> {
  let completionText = '';

Severity: Minor
Found in chatapi/src/utils/chat-assistant.utils.ts - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status