summaryrefslogtreecommitdiffstats
path: root/g4f_api/ApiInterface.py
diff options
context:
space:
mode:
Diffstat (limited to 'g4f_api/ApiInterface.py')
-rw-r--r--g4f_api/ApiInterface.py12
1 files changed, 0 insertions, 12 deletions
diff --git a/g4f_api/ApiInterface.py b/g4f_api/ApiInterface.py
deleted file mode 100644
index f6572912..00000000
--- a/g4f_api/ApiInterface.py
+++ /dev/null
@@ -1,12 +0,0 @@
-import g4f
-from g4f.api import Api
-
-create_chat_completion_original = g4f.ChatCompletion.create
-list_ignored_providers=[]
-
-def create_chat_completion(*args, **kwargs):
- kwargs['ignored']=list_ignored_providers
- return create_chat_completion_original(*args, **kwargs)
-
-g4f.ChatCompletion.create=create_chat_completion
-api=Api(g4f, debug=False)