mirror of
https://github.com/xtekky/gpt4free.git
synced 2024-11-10 19:11:01 +00:00
refactor(test): simplify model test cases to core options
This commit is contained in:
parent
4fe31264e4
commit
207d4e12c3
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user