diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 9925fed..f480521 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -21,7 +21,7 @@ repos: - id: trailing-whitespace - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.15.6 + rev: v0.15.15 hooks: - id: ruff-check args: ["--fix", "--exit-non-zero-on-fix"] @@ -34,6 +34,6 @@ repos: args: ["--py311-plus"] - repo: https://github.com/rhysd/actionlint - rev: v1.7.11 + rev: v1.7.12 hooks: - id: actionlint diff --git a/main.py b/main.py index 5d53885..534ac2b 100644 --- a/main.py +++ b/main.py @@ -92,7 +92,7 @@ openai_settings: OpenAIResponsesModelSettings = OpenAIResponsesModelSettings( openai_text_verbosity="low", ) chatgpt_agent: Agent[BotDependencies, str] = Agent( - model="openai:gpt-5-chat-latest", + model="deepseek:deepseek-v4-flash", deps_type=BotDependencies, model_settings=openai_settings, ) @@ -1113,7 +1113,7 @@ def enhance_image1(image: bytes) -> bytes: """ # Read the image nparr: ImageType = np.frombuffer(image, np.uint8) - img_np: ImageType = cv2.imdecode(nparr, cv2.IMREAD_COLOR) + img_np: ImageType = cv2.imdecode(nparr, cv2.IMREAD_COLOR) # pyright: ignore[reportAssignmentType] # Denoise the image with conservative settings img_np = cv2.fastNlMeansDenoisingColored(img_np, None, 5, 5, 7, 21) @@ -1150,7 +1150,7 @@ def enhance_image2(image: bytes) -> bytes: """ # Read the image nparr: ImageType = np.frombuffer(image, np.uint8) - img_np: ImageType = cv2.imdecode(nparr, cv2.IMREAD_COLOR) + img_np: ImageType = cv2.imdecode(nparr, cv2.IMREAD_COLOR) # pyright: ignore[reportAssignmentType] # Denoise the image with conservative settings img_np = cv2.fastNlMeansDenoisingColored(img_np, None, 5, 5, 7, 21) @@ -1194,7 +1194,7 @@ def enhance_image3(image: bytes) -> bytes: """ # Read the image nparr: ImageType = np.frombuffer(image, np.uint8) - img_np: ImageType = cv2.imdecode(nparr, cv2.IMREAD_COLOR) + img_np: ImageType = cv2.imdecode(nparr, cv2.IMREAD_COLOR) # pyright: ignore[reportAssignmentType] # Denoise the image with conservative settings img_np = cv2.fastNlMeansDenoisingColored(img_np, None, 5, 5, 7, 21)