Skip to content

Commit 9b730cc

Browse files
authored
Merge pull request #9 from blopit/fix-import-errors
Fix import errors
2 parents f617c24 + c6dd35f commit 9b730cc

5 files changed

Lines changed: 4 additions & 5 deletions

File tree

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ pytz>=2024.1 # Added for timezone support
77
aiohttp>=3.9.3
88
requests>=2.32.3
99
playwright>=1.50.0
10+
html5lib>=1.1 # Added for HTML parsing
1011

1112
# Search Engine
1213
duckduckgo-search>=7.4.3

tests/test_plan_exec_llm.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,8 @@
66
from pathlib import Path
77
import sys
88

9-
# Add the parent directory to the Python path so we can import the module
10-
sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
119
from tools.plan_exec_llm import load_environment, read_plan_status, read_file_content, create_llm_client, query_llm
12-
from tools.plan_exec_llm import TokenUsage
10+
from tools.token_tracker import TokenUsage
1311

1412
class TestPlanExecLLM(unittest.TestCase):
1513
def setUp(self):

tools/__init__.py

Whitespace-only changes.

tools/llm_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
from typing import Optional, Union, List
1313
import mimetypes
1414
import time
15-
from token_tracker import TokenUsage, APIResponse, get_token_tracker
15+
from .token_tracker import TokenUsage, APIResponse, get_token_tracker
1616

1717
def load_environment():
1818
"""Load environment variables from .env files in order of precedence"""

tools/plan_exec_llm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
from dotenv import load_dotenv
88
import sys
99
import time
10-
from token_tracker import TokenUsage, APIResponse, get_token_tracker
10+
from .token_tracker import TokenUsage, APIResponse, get_token_tracker
1111

1212
STATUS_FILE = '.cursorrules'
1313

0 commit comments

Comments
 (0)