summaryrefslogtreecommitdiffstats
path: root/g4f/Provider/DeepInfra.py
diff options
context:
space:
mode:
authornullstreak <139914347+nullstreak@users.noreply.github.com>2024-02-14 03:27:16 +0100
committernullstreak <139914347+nullstreak@users.noreply.github.com>2024-02-14 03:27:16 +0100
commit12f7a895172ac536d9c523ff74aaf9d474364de5 (patch)
tree33b3a1e92966a1a5245089fab73b853c2aea9148 /g4f/Provider/DeepInfra.py
parentUpdate client.md (diff)
downloadgpt4free-12f7a895172ac536d9c523ff74aaf9d474364de5.tar
gpt4free-12f7a895172ac536d9c523ff74aaf9d474364de5.tar.gz
gpt4free-12f7a895172ac536d9c523ff74aaf9d474364de5.tar.bz2
gpt4free-12f7a895172ac536d9c523ff74aaf9d474364de5.tar.lz
gpt4free-12f7a895172ac536d9c523ff74aaf9d474364de5.tar.xz
gpt4free-12f7a895172ac536d9c523ff74aaf9d474364de5.tar.zst
gpt4free-12f7a895172ac536d9c523ff74aaf9d474364de5.zip
Diffstat (limited to 'g4f/Provider/DeepInfra.py')
-rw-r--r--g4f/Provider/DeepInfra.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/g4f/Provider/DeepInfra.py b/g4f/Provider/DeepInfra.py
index 8e36128d..183f00ea 100644
--- a/g4f/Provider/DeepInfra.py
+++ b/g4f/Provider/DeepInfra.py
@@ -60,6 +60,7 @@ class DeepInfra(AsyncGeneratorProvider, ProviderModelMixin):
json_data = {
'model' : cls.get_model(model),
'messages': messages,
+ 'temperature': kwargs.get("temperature", 0.7),
'stream' : True
}
async with session.post('https://api.deepinfra.com/v1/openai/chat/completions',