summaryrefslogtreecommitdiffstats
path: root/testing
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--g4f/.v1/testing/aiassistest.py (renamed from testing/aiassistest.py)0
-rw-r--r--g4f/.v1/testing/aicolors_test.py (renamed from testing/aicolors_test.py)0
-rw-r--r--g4f/.v1/testing/deepai_test.py (renamed from testing/deepai_test.py)0
-rw-r--r--g4f/.v1/testing/forefront_test.py (renamed from testing/forefront_test.py)0
-rw-r--r--g4f/.v1/testing/gptworldai_test.py (renamed from testing/gptworldai_test.py)0
-rw-r--r--g4f/.v1/testing/hpgptai_test.py (renamed from testing/hpgptai_test.py)0
-rw-r--r--g4f/.v1/testing/italygpt2_test.py (renamed from testing/italygpt2_test.py)0
-rw-r--r--g4f/.v1/testing/openaihosted_test.py (renamed from testing/openaihosted_test.py)0
-rw-r--r--g4f/.v1/testing/poe_account_create_test.py (renamed from testing/poe_account_create_test.py)4
-rw-r--r--g4f/.v1/testing/poe_test.py (renamed from testing/poe_test.py)0
-rw-r--r--g4f/.v1/testing/quora_test_2.py (renamed from testing/quora_test_2.py)0
-rw-r--r--g4f/.v1/testing/sqlchat_test.py (renamed from testing/sqlchat_test.py)0
-rw-r--r--g4f/.v1/testing/t3nsor_test.py (renamed from testing/t3nsor_test.py)0
-rw-r--r--g4f/.v1/testing/test_main.py (renamed from testing/test_main.py)0
-rw-r--r--g4f/.v1/testing/theb_test.py (renamed from testing/theb_test.py)0
-rw-r--r--g4f/.v1/testing/useless_test.py (renamed from testing/useless_test.py)0
-rw-r--r--g4f/.v1/testing/usesless_test.py (renamed from testing/usesless_test.py)0
-rw-r--r--g4f/.v1/testing/writesonic_test.py (renamed from testing/writesonic_test.py)0
-rw-r--r--g4f/.v1/testing/you_test.py (renamed from testing/you_test.py)0
-rw-r--r--testing/interference_test.py15
-rw-r--r--testing/readme_table.py52
21 files changed, 69 insertions, 2 deletions
diff --git a/testing/aiassistest.py b/g4f/.v1/testing/aiassistest.py
index 57a34f15..57a34f15 100644
--- a/testing/aiassistest.py
+++ b/g4f/.v1/testing/aiassistest.py
diff --git a/testing/aicolors_test.py b/g4f/.v1/testing/aicolors_test.py
index 853f7e45..853f7e45 100644
--- a/testing/aicolors_test.py
+++ b/g4f/.v1/testing/aicolors_test.py
diff --git a/testing/deepai_test.py b/g4f/.v1/testing/deepai_test.py
index 474f663e..474f663e 100644
--- a/testing/deepai_test.py
+++ b/g4f/.v1/testing/deepai_test.py
diff --git a/testing/forefront_test.py b/g4f/.v1/testing/forefront_test.py
index b7b5c57c..b7b5c57c 100644
--- a/testing/forefront_test.py
+++ b/g4f/.v1/testing/forefront_test.py
diff --git a/testing/gptworldai_test.py b/g4f/.v1/testing/gptworldai_test.py
index 3dfb32ce..3dfb32ce 100644
--- a/testing/gptworldai_test.py
+++ b/g4f/.v1/testing/gptworldai_test.py
diff --git a/testing/hpgptai_test.py b/g4f/.v1/testing/hpgptai_test.py
index cdd146dd..cdd146dd 100644
--- a/testing/hpgptai_test.py
+++ b/g4f/.v1/testing/hpgptai_test.py
diff --git a/testing/italygpt2_test.py b/g4f/.v1/testing/italygpt2_test.py
index 0494c8a2..0494c8a2 100644
--- a/testing/italygpt2_test.py
+++ b/g4f/.v1/testing/italygpt2_test.py
diff --git a/testing/openaihosted_test.py b/g4f/.v1/testing/openaihosted_test.py
index d5a79e52..d5a79e52 100644
--- a/testing/openaihosted_test.py
+++ b/g4f/.v1/testing/openaihosted_test.py
diff --git a/testing/poe_account_create_test.py b/g4f/.v1/testing/poe_account_create_test.py
index ace2306e..41ae5a33 100644
--- a/testing/poe_account_create_test.py
+++ b/g4f/.v1/testing/poe_account_create_test.py
@@ -9,7 +9,7 @@ from twocaptcha import TwoCaptcha
from gpt4free.quora import extract_formkey
from gpt4free.quora.mail import Emailnator
-solver = TwoCaptcha('72747bf24a9d89b4dcc1b24875efd358')
+solver = TwoCaptcha('')
class Account:
@@ -106,4 +106,4 @@ class Account:
print('verify_code', response.json())
-Account.create(proxy='xtekky:wegwgwegwed_streaming-1@geo.iproyal.com:12321', logging=True)
+Account.create(proxy='', logging=True)
diff --git a/testing/poe_test.py b/g4f/.v1/testing/poe_test.py
index 6edc030c..6edc030c 100644
--- a/testing/poe_test.py
+++ b/g4f/.v1/testing/poe_test.py
diff --git a/testing/quora_test_2.py b/g4f/.v1/testing/quora_test_2.py
index 297ca7a1..297ca7a1 100644
--- a/testing/quora_test_2.py
+++ b/g4f/.v1/testing/quora_test_2.py
diff --git a/testing/sqlchat_test.py b/g4f/.v1/testing/sqlchat_test.py
index 1db71be2..1db71be2 100644
--- a/testing/sqlchat_test.py
+++ b/g4f/.v1/testing/sqlchat_test.py
diff --git a/testing/t3nsor_test.py b/g4f/.v1/testing/t3nsor_test.py
index 6d36400d..6d36400d 100644
--- a/testing/t3nsor_test.py
+++ b/g4f/.v1/testing/t3nsor_test.py
diff --git a/testing/test_main.py b/g4f/.v1/testing/test_main.py
index 7c28f1d2..7c28f1d2 100644
--- a/testing/test_main.py
+++ b/g4f/.v1/testing/test_main.py
diff --git a/testing/theb_test.py b/g4f/.v1/testing/theb_test.py
index 5fa80908..5fa80908 100644
--- a/testing/theb_test.py
+++ b/g4f/.v1/testing/theb_test.py
diff --git a/testing/useless_test.py b/g4f/.v1/testing/useless_test.py
index 47c92386..47c92386 100644
--- a/testing/useless_test.py
+++ b/g4f/.v1/testing/useless_test.py
diff --git a/testing/usesless_test.py b/g4f/.v1/testing/usesless_test.py
index e2e35547..e2e35547 100644
--- a/testing/usesless_test.py
+++ b/g4f/.v1/testing/usesless_test.py
diff --git a/testing/writesonic_test.py b/g4f/.v1/testing/writesonic_test.py
index aff847f0..aff847f0 100644
--- a/testing/writesonic_test.py
+++ b/g4f/.v1/testing/writesonic_test.py
diff --git a/testing/you_test.py b/g4f/.v1/testing/you_test.py
index 1e9f6205..1e9f6205 100644
--- a/testing/you_test.py
+++ b/g4f/.v1/testing/you_test.py
diff --git a/testing/interference_test.py b/testing/interference_test.py
new file mode 100644
index 00000000..e7a780d5
--- /dev/null
+++ b/testing/interference_test.py
@@ -0,0 +1,15 @@
+import openai
+
+openai.api_key = ''
+openai.api_base = 'http://localhost:1337'
+
+chat_completion = openai.ChatCompletion.create(stream=True,
+ model='gpt-3.5-turbo', messages=[{'role': 'user', 'content': 'write a poem about a tree'}])
+
+#print(chat_completion.choices[0].message.content)
+
+for token in chat_completion:
+
+ content = token['choices'][0]['delta'].get('content')
+ if content != None:
+ print(content) \ No newline at end of file
diff --git a/testing/readme_table.py b/testing/readme_table.py
new file mode 100644
index 00000000..d798ae9d
--- /dev/null
+++ b/testing/readme_table.py
@@ -0,0 +1,52 @@
+from g4f.Provider import (
+ Ails,
+ You,
+ Bing,
+ Yqcloud,
+ Theb,
+ Aichat,
+ Bard,
+ Vercel,
+ Forefront,
+ Lockchat,
+ Liaobots,
+ H2o,
+ ChatgptLogin,
+ DeepAi,
+ GetGpt
+)
+
+from urllib.parse import urlparse
+
+providers = [
+ Ails,
+ You,
+ Bing,
+ Yqcloud,
+ Theb,
+ Aichat,
+ Bard,
+ Vercel,
+ Forefront,
+ Lockchat,
+ Liaobots,
+ H2o,
+ ChatgptLogin,
+ DeepAi,
+ GetGpt
+]
+
+# | Website| Provider| gpt-3.5-turbo | gpt-4 | Supports Stream | Status | Needs Auth |
+print('| Website| Provider| gpt-3.5 | gpt-4 | Streaming | Status | Auth |')
+print('| --- | --- | --- | --- | --- | --- | --- |')
+
+for provider in providers:
+ parsed_url = urlparse(provider.url)
+ name = f"`g4f.Provider{provider.__name__.split('.')[-1]}`"
+ url = f'[{parsed_url.netloc}]({provider.url})'
+ has_gpt4 = '✔️' if 'gpt-4' in provider.model else '❌'
+ has_gpt3_5 = '✔️' if 'gpt-3.5-turbo' in provider.model else '❌'
+ streaming = '✔️' if provider.supports_stream else '❌'
+ needs_auth = '✔️' if provider.needs_auth else '❌'
+
+ print(f'| {url} | {name} | {has_gpt3_5} | {has_gpt4} | {streaming} | ![Active](https://img.shields.io/badge/Active-brightgreen) | {needs_auth} |') \ No newline at end of file