Skip to content

feat: add LiteLLM as unified LLM provider#3182

Open
RheagalFire wants to merge 2 commits into
ModelEngine-Group:mainfrom
RheagalFire:feat/add-litellm-provider
Open

feat: add LiteLLM as unified LLM provider#3182
RheagalFire wants to merge 2 commits into
ModelEngine-Group:mainfrom
RheagalFire:feat/add-litellm-provider

test: add comprehensive tests for LiteLLMModel

776f886
Select commit
Loading
Failed to load commit list.
SonarQubeCloud / SonarCloud Code Analysis failed Jun 2, 2026 in 2m 23s

Quality Gate failed

Failed conditions
D Security Rating on New Code (required ≥ A)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

Annotations

Check warning on line 60 in test/sdk/test_litellm_model.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this unnecessary `list()` call on an already iterable object.

See more on https://sonarcloud.io/project/issues?id=ModelEngine-Group_nexent&issues=AZ6JmmoICnRr0TijLoRi&open=AZ6JmmoICnRr0TijLoRi&pullRequest=3182

Check failure on line 48 in backend/services/providers/litellm_provider.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Enable server certificate validation on this SSL/TLS connection.

See more on https://sonarcloud.io/project/issues?id=ModelEngine-Group_nexent&issues=AZ6JlMSAaTQuY9-sSTe1&open=AZ6JlMSAaTQuY9-sSTe1&pullRequest=3182

Check failure on line 23 in test/sdk/test_litellm_model.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Add a nested comment explaining why this method is empty, or complete the implementation.

See more on https://sonarcloud.io/project/issues?id=ModelEngine-Group_nexent&issues=AZ6JmmoICnRr0TijLoRh&open=AZ6JmmoICnRr0TijLoRh&pullRequest=3182

Check failure on line 21 in test/sdk/test_litellm_model.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Add a nested comment explaining why this method is empty, or complete the implementation.

See more on https://sonarcloud.io/project/issues?id=ModelEngine-Group_nexent&issues=AZ6JmmoICnRr0TijLoRg&open=AZ6JmmoICnRr0TijLoRg&pullRequest=3182

Check failure on line 19 in test/sdk/test_litellm_model.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Add a nested comment explaining why this method is empty, or complete the implementation.

See more on https://sonarcloud.io/project/issues?id=ModelEngine-Group_nexent&issues=AZ6JmmoICnRr0TijLoRf&open=AZ6JmmoICnRr0TijLoRf&pullRequest=3182

Check warning on line 172 in test/sdk/test_litellm_model.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace this generic exception class with a more specific one.

See more on https://sonarcloud.io/project/issues?id=ModelEngine-Group_nexent&issues=AZ6JmmoICnRr0TijLoRj&open=AZ6JmmoICnRr0TijLoRj&pullRequest=3182

Check failure on line 200 in sdk/nexent/core/models/litellm_llm.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use "logging.exception()" instead.

See more on https://sonarcloud.io/project/issues?id=ModelEngine-Group_nexent&issues=AZ6JlMhHaTQuY9-sSTe3&open=AZ6JlMhHaTQuY9-sSTe3&pullRequest=3182

Check failure on line 53 in sdk/nexent/core/models/litellm_llm.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor this function to reduce its Cognitive Complexity from 43 to the 15 allowed.

See more on https://sonarcloud.io/project/issues?id=ModelEngine-Group_nexent&issues=AZ6JlMhHaTQuY9-sSTe2&open=AZ6JlMhHaTQuY9-sSTe2&pullRequest=3182