Skip to content

Devika is the first open-source implementation of an Agentic Software Engineer. Initially started as an open-source alternative to Devin.

Python

fix: typing annotation

heyia94a50bc96e0
diff --git a/src/llm/llm.py b/src/llm/llm.py
index 4080b5e..97f4c22 100644
--- a/src/llm/llm.py
+++ b/src/llm/llm.py
@@ -1,4 +1,5 @@
from enum import Enum
+from typing import List, Tuple
from .ollama_client import Ollama
from .claude_client import Claude
@@ -27,7 +28,7 @@ class LLM:
def __init__(self, model_id: str = None):
self.model_id = model_id
- def list_models(self) -> list[tuple[str, str]]:
+ def list_models(self) -> List[Tuple[str, str]]:
return [model.value for model in Model if model.name != "OLLAMA_MODELS"] + list(
Model.OLLAMA_MODELS.value
)