summaryrefslogtreecommitdiffstats
path: root/g4f/Provider/Providers/DfeHub.py
diff options
context:
space:
mode:
authorgrandsonneo@gmail.com <grandsonneo@gmail.com>2023-07-22 04:17:53 +0200
committergrandsonneo@gmail.com <grandsonneo@gmail.com>2023-07-22 04:17:53 +0200
commit0e07ae77cf190f90962e1f2032f94e2923d72941 (patch)
tree6bf4bece40b0adb823755d9e9c06541d1347f0c6 /g4f/Provider/Providers/DfeHub.py
parentMerge pull request #768 from nonk123/main (diff)
downloadgpt4free-0e07ae77cf190f90962e1f2032f94e2923d72941.tar
gpt4free-0e07ae77cf190f90962e1f2032f94e2923d72941.tar.gz
gpt4free-0e07ae77cf190f90962e1f2032f94e2923d72941.tar.bz2
gpt4free-0e07ae77cf190f90962e1f2032f94e2923d72941.tar.lz
gpt4free-0e07ae77cf190f90962e1f2032f94e2923d72941.tar.xz
gpt4free-0e07ae77cf190f90962e1f2032f94e2923d72941.tar.zst
gpt4free-0e07ae77cf190f90962e1f2032f94e2923d72941.zip
Diffstat (limited to 'g4f/Provider/Providers/DfeHub.py')
-rw-r--r--g4f/Provider/Providers/DfeHub.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/g4f/Provider/Providers/DfeHub.py b/g4f/Provider/Providers/DfeHub.py
index afc9861a..e3ff8045 100644
--- a/g4f/Provider/Providers/DfeHub.py
+++ b/g4f/Provider/Providers/DfeHub.py
@@ -32,10 +32,10 @@ def _create_completion(model: str, messages: list, stream: bool, **kwargs):
json_data = {
'messages': messages,
'model': 'gpt-3.5-turbo',
- 'temperature': 0.5,
- 'presence_penalty': 0,
- 'frequency_penalty': 0,
- 'top_p': 1,
+ 'temperature': kwargs.get('temperature', 0.5),
+ 'presence_penalty': kwargs.get('presence_penalty', 0),
+ 'frequency_penalty': kwargs.get('frequency_penalty', 0),
+ 'top_p': kwargs.get('top_p', 1),
"stream": True,
}
response = requests.post('https://chat.dfehub.com/api/openai/v1/chat/completions',