mirror of
https://github.com/xtekky/gpt4free.git
synced 2025-12-06 02:30:41 -08:00
Fix: Model sometimes not converted #1507
This commit is contained in:
parent
b6feec9e7d
commit
e4f743881c
5 changed files with 45 additions and 10 deletions
|
|
@ -22,4 +22,12 @@ class AsyncGeneratorProviderMock(AsyncGeneratorProvider):
|
|||
async def create_async_generator(
|
||||
model, messages, stream, **kwargs
|
||||
):
|
||||
yield "Mock"
|
||||
yield "Mock"
|
||||
|
||||
class ModelProviderMock(AbstractProvider):
|
||||
working = True
|
||||
|
||||
def create_completion(
|
||||
model, messages, stream, **kwargs
|
||||
):
|
||||
yield model
|
||||
Loading…
Add table
Add a link
Reference in a new issue