summaryrefslogtreecommitdiffstats
path: root/g4f/gui/server
diff options
context:
space:
mode:
Diffstat (limited to 'g4f/gui/server')
-rw-r--r--g4f/gui/server/backend.py2
-rw-r--r--g4f/gui/server/internet.py3
-rw-r--r--g4f/gui/server/provider.py2
3 files changed, 6 insertions, 1 deletions
diff --git a/g4f/gui/server/backend.py b/g4f/gui/server/backend.py
index 7b5e9f0d..79fcd836 100644
--- a/g4f/gui/server/backend.py
+++ b/g4f/gui/server/backend.py
@@ -55,4 +55,4 @@ class Backend_Api:
'code' : 'G4F_ERROR',
'_action': '_ask',
'success': False,
- 'error' : f'an error occured {str(e)}'}, 400 \ No newline at end of file
+ 'error' : f'an error occurred {str(e)}'}, 400
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