mirror of
https://github.com/xtekky/gpt4free.git
synced 2024-11-03 03:40:12 +00:00
Merge pull request #1627 from nullstreak/deepinfra
DeepInfra: Add max_tokens and stop
This commit is contained in:
commit
369ea62114
@ -61,6 +61,8 @@ class DeepInfra(AsyncGeneratorProvider, ProviderModelMixin):
|
||||
'model' : cls.get_model(model),
|
||||
'messages': messages,
|
||||
'temperature': kwargs.get("temperature", 0.7),
|
||||
'max_tokens': kwargs.get("max_tokens", 512),
|
||||
'stop': kwargs.get("stop", []),
|
||||
'stream' : True
|
||||
}
|
||||
async with session.post('https://api.deepinfra.com/v1/openai/chat/completions',
|
||||
|
Loading…
Reference in New Issue
Block a user