Skip to content

Commit 86f94e2

Browse files
author
maebahesioru
committed
perf: remove unused imports (AbortSignalDetector, functools, List/Dict/Set)
1 parent 15e138b commit 86f94e2

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

src/api/request_processor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
from models import ChatCompletionRequest, ClientDisconnectedError
1616
from browser import switch_ai_studio_model, save_error_snapshot
1717
from .utils import validate_chat_request, prepare_combined_prompt, generate_sse_chunk, generate_sse_stop_chunk, use_stream_response, calculate_usage_stats, request_manager, calculate_stream_max_retries
18-
from .abort_detector import AbortSignalDetector, AbortSignalHandler
18+
from .abort_detector import AbortSignalHandler
1919
from browser.page_controller import PageController
2020

2121
TOOL_CALL_INSTRUCTION = """When you need to call a tool, you MUST use EXACTLY this format (one per tool call):

src/browser/operations.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@
44
import os
55
import re
66
import logging
7-
import functools
8-
from typing import Optional, Any, List, Dict, Callable, Set, TypeVar
7+
from typing import Optional, Any, Callable, TypeVar
98
from playwright.async_api import Page as AsyncPage, Locator, Error as PlaywrightAsyncError
109
from config import *
1110
from models import ClientDisconnectedError, ElementClickError

0 commit comments

Comments
 (0)