open-learning-exchange/planet

View on GitHub
chatapi/src/config/ai-providers.config.ts

Summary

Maintainability
A
1 hr
Test Coverage

Function initialize has 27 lines of code (exceeds 25 allowed). Consider refactoring.
Open

const initialize = async () => {
  try {
    const doc = await getConfig();
    if (!doc) {
      console.error('Configuration not found');
Severity: Minor
Found in chatapi/src/config/ai-providers.config.ts - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status