Skip to content

[feature] Add Ollama integration for local LLM support

9acdb3d
Select commit
Loading
Failed to load commit list.
Open

[feature] Ollama Integration - Local LLM Support #287

[feature] Add Ollama integration for local LLM support
9acdb3d
Select commit
Loading
Failed to load commit list.
SonarQubeCloud / SonarCloud Code Analysis failed Dec 10, 2025 in 18s

Quality Gate failed

Failed conditions
2 Security Hotspots
C Reliability 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 658 in cortex/providers/ollama_integration.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Merge this if statement with the enclosing one.

See more on https://sonarcloud.io/project/issues?id=cortexlinux_cortex&issues=AZsHCOUnnByX-KFmiwxz&open=AZsHCOUnnByX-KFmiwxz&pullRequest=287

Check warning on line 285 in cortex/providers/ollama_integration.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use asynchronous features in this function or remove the `async` keyword.

See more on https://sonarcloud.io/project/issues?id=cortexlinux_cortex&issues=AZsHCOUnnByX-KFmiwx1&open=AZsHCOUnnByX-KFmiwx1&pullRequest=287

Check warning on line 69 in tests/test_ollama_integration.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Do not perform equality checks with floating point values.

See more on https://sonarcloud.io/project/issues?id=cortexlinux_cortex&issues=AZsHCOYnnByX-KFmiwx5&open=AZsHCOYnnByX-KFmiwx5&pullRequest=287

Check failure on line 746 in cortex/providers/ollama_integration.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

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

See more on https://sonarcloud.io/project/issues?id=cortexlinux_cortex&issues=AZsHCOUnnByX-KFmiwx4&open=AZsHCOUnnByX-KFmiwx4&pullRequest=287

Check warning on line 83 in tests/test_ollama_integration.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Do not perform equality checks with floating point values.

See more on https://sonarcloud.io/project/issues?id=cortexlinux_cortex&issues=AZsHCOYnnByX-KFmiwx8&open=AZsHCOYnnByX-KFmiwx8&pullRequest=287

Check failure on line 432 in cortex/providers/ollama_integration.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

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

See more on https://sonarcloud.io/project/issues?id=cortexlinux_cortex&issues=AZsHCOUnnByX-KFmiwx2&open=AZsHCOUnnByX-KFmiwx2&pullRequest=287

Check warning on line 192 in tests/test_ollama_integration.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use asynchronous features in this function or remove the `async` keyword.

See more on https://sonarcloud.io/project/issues?id=cortexlinux_cortex&issues=AZsHCOYnnByX-KFmiwx9&open=AZsHCOYnnByX-KFmiwx9&pullRequest=287

Check warning on line 581 in cortex/providers/ollama_integration.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace the unused local variable "stdout" with "_".

See more on https://sonarcloud.io/project/issues?id=cortexlinux_cortex&issues=AZsHCOUnnByX-KFmiwx3&open=AZsHCOUnnByX-KFmiwx3&pullRequest=287

Check warning on line 64 in cortex/providers/ollama_integration.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this commented out code.

See more on https://sonarcloud.io/project/issues?id=cortexlinux_cortex&issues=AZsHCOUnnByX-KFmiwx0&open=AZsHCOUnnByX-KFmiwx0&pullRequest=287

Check failure on line 118 in cortex/providers/ollama_integration.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Define a constant instead of duplicating this literal "llama3.2:latest" 4 times.

See more on https://sonarcloud.io/project/issues?id=cortexlinux_cortex&issues=AZsHCOUnnByX-KFmiwxy&open=AZsHCOUnnByX-KFmiwxy&pullRequest=287