summaryrefslogtreecommitdiffstats
path: root/etc/testing
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--etc/testing/_providers.py3
-rw-r--r--etc/testing/test_all.py14
-rw-r--r--etc/testing/test_chat_completion.py4
3 files changed, 5 insertions, 16 deletions
diff --git a/etc/testing/_providers.py b/etc/testing/_providers.py
index e2ef0cbe..0d75dd02 100644
--- a/etc/testing/_providers.py
+++ b/etc/testing/_providers.py
@@ -35,7 +35,6 @@ def get_providers() -> list[ProviderType]:
provider
for provider in __providers__
if provider.__name__ not in dir(Provider.deprecated)
- and provider.__name__ not in dir(Provider.unfinished)
and provider.url is not None
]
@@ -59,4 +58,4 @@ def test(provider: ProviderType) -> bool:
if __name__ == "__main__":
main()
- \ No newline at end of file
+
diff --git a/etc/testing/test_all.py b/etc/testing/test_all.py
index 73134e3f..6850627d 100644
--- a/etc/testing/test_all.py
+++ b/etc/testing/test_all.py
@@ -38,21 +38,11 @@ async def test(model: g4f.Model):
async def start_test():
models_to_test = [
- # GPT-3.5 4K Context
+ # GPT-3.5
g4f.models.gpt_35_turbo,
- g4f.models.gpt_35_turbo_0613,
- # GPT-3.5 16K Context
- g4f.models.gpt_35_turbo_16k,
- g4f.models.gpt_35_turbo_16k_0613,
-
- # GPT-4 8K Context
+ # GPT-4
g4f.models.gpt_4,
- g4f.models.gpt_4_0613,
-
- # GPT-4 32K Context
- g4f.models.gpt_4_32k,
- g4f.models.gpt_4_32k_0613,
]
models_working = []
diff --git a/etc/testing/test_chat_completion.py b/etc/testing/test_chat_completion.py
index 615c8be0..6b053b72 100644
--- a/etc/testing/test_chat_completion.py
+++ b/etc/testing/test_chat_completion.py
@@ -8,7 +8,7 @@ import g4f, asyncio
print("create:", end=" ", flush=True)
for response in g4f.ChatCompletion.create(
model=g4f.models.default,
- provider=g4f.Provider.Bing,
+ #provider=g4f.Provider.Bing,
messages=[{"role": "user", "content": "write a poem about a tree"}],
stream=True
):
@@ -18,7 +18,7 @@ print()
async def run_async():
response = await g4f.ChatCompletion.create_async(
model=g4f.models.default,
- provider=g4f.Provider.Bing,
+ #provider=g4f.Provider.Bing,
messages=[{"role": "user", "content": "hello!"}],
)
print("create_async:", response)