From 50ecd887c8c4166f02537324d2fac86f82ff2123 Mon Sep 17 00:00:00 2001 From: hs_junxiang Date: Wed, 11 Oct 2023 16:57:46 +0800 Subject: Fix: TypeError: unsupported operand type(s) for |:... --- g4f/gui/server/internet.py | 3 +++ g4f/gui/server/provider.py | 2 ++ 2 files changed, 5 insertions(+) (limited to 'g4f/gui') diff --git a/g4f/gui/server/internet.py b/g4f/gui/server/internet.py index 75edb9cb..5c150ad6 100644 --- a/g4f/gui/server/internet.py +++ b/g4f/gui/server/internet.py @@ -1,4 +1,7 @@ +from __future__ import annotations + from datetime import datetime + from duckduckgo_search import DDGS ddgs = DDGS(timeout=20) diff --git a/g4f/gui/server/provider.py b/g4f/gui/server/provider.py index 11202d38..8554bf4f 100644 --- a/g4f/gui/server/provider.py +++ b/g4f/gui/server/provider.py @@ -1,3 +1,5 @@ +from __future__ import annotations + import g4f from g4f import BaseProvider -- cgit v1.2.3