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

Merge pull request #112 from ketangangal/feature-dev/token-usage-from-agent-state

Mufeed VHc00a390a07eb
diff --cc src/llm/llm.py
index dab4dde,c5c4843..96f66a6
--- a/src/llm/llm.py
+++ b/src/llm/llm.py
@@@ -3,11 -3,11 +3,12 @@@ from enum import Enu
from .ollama_client import Ollama
from .claude_client import Claude
from .openai_client import OpenAI
+from .groq_client import Groq
+ from src.state import AgentState
+
import tiktoken
- TOKEN_USAGE = 0
TIKTOKEN_ENC = tiktoken.get_encoding("cl100k_base")
class Model(Enum):