diff options
author | xtekky <98614666+xtekky@users.noreply.github.com> | 2023-07-22 14:41:23 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-22 14:41:23 +0200 |
commit | 2d345927ab6112d31863d3bbd4f7c495ebc04f47 (patch) | |
tree | 6bf4bece40b0adb823755d9e9c06541d1347f0c6 /g4f/Provider/Providers/AItianhu.py | |
parent | Merge pull request #768 from nonk123/main (diff) | |
parent | Use the temperature parameter (diff) | |
download | gpt4free-2d345927ab6112d31863d3bbd4f7c495ebc04f47.tar gpt4free-2d345927ab6112d31863d3bbd4f7c495ebc04f47.tar.gz gpt4free-2d345927ab6112d31863d3bbd4f7c495ebc04f47.tar.bz2 gpt4free-2d345927ab6112d31863d3bbd4f7c495ebc04f47.tar.lz gpt4free-2d345927ab6112d31863d3bbd4f7c495ebc04f47.tar.xz gpt4free-2d345927ab6112d31863d3bbd4f7c495ebc04f47.tar.zst gpt4free-2d345927ab6112d31863d3bbd4f7c495ebc04f47.zip |
Diffstat (limited to '')
-rw-r--r-- | g4f/Provider/Providers/AItianhu.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/g4f/Provider/Providers/AItianhu.py b/g4f/Provider/Providers/AItianhu.py index 5a151e1e..0bdaa09a 100644 --- a/g4f/Provider/Providers/AItianhu.py +++ b/g4f/Provider/Providers/AItianhu.py @@ -22,8 +22,8 @@ def _create_completion(model: str, messages: list, stream: bool, **kwargs): "prompt": base, "options": {}, "systemMessage": "You are ChatGPT, a large language model trained by OpenAI. Follow the user's instructions carefully. Respond using markdown.", - "temperature": 0.8, - "top_p": 1 + "temperature": kwargs.get("temperature", 0.8), + "top_p": kwargs.get("top_p", 1) } response = requests.post(url, headers=headers, json=data) if response.status_code == 200: |