summaryrefslogtreecommitdiffstats
path: root/g4f_api/ApiInterface.py
diff options
context:
space:
mode:
authorrazrab <razrab@PimoLin>2023-10-23 10:01:08 +0200
committerrazrab <razrab@PimoLin>2023-10-23 10:01:40 +0200
commit36fe869a81ad44480b2aa72bdc3fae2952c69816 (patch)
tree9eb201ed704f06e3524fe006db0016a7b4215837 /g4f_api/ApiInterface.py
parentMerge remote-tracking branch 'upstream/main' into api-ignore-providers (diff)
downloadgpt4free-36fe869a81ad44480b2aa72bdc3fae2952c69816.tar
gpt4free-36fe869a81ad44480b2aa72bdc3fae2952c69816.tar.gz
gpt4free-36fe869a81ad44480b2aa72bdc3fae2952c69816.tar.bz2
gpt4free-36fe869a81ad44480b2aa72bdc3fae2952c69816.tar.lz
gpt4free-36fe869a81ad44480b2aa72bdc3fae2952c69816.tar.xz
gpt4free-36fe869a81ad44480b2aa72bdc3fae2952c69816.tar.zst
gpt4free-36fe869a81ad44480b2aa72bdc3fae2952c69816.zip
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)