refactor(test): simplify model test cases to core options

This commit is contained in:
kqlio67 2024-09-06 17:43:42 +03:00
parent 4fe31264e4
commit 207d4e12c3

View File

@ -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)