From 0e07ae77cf190f90962e1f2032f94e2923d72941 Mon Sep 17 00:00:00 2001 From: "grandsonneo@gmail.com" Date: Fri, 21 Jul 2023 22:17:53 -0400 Subject: Use the temperature parameter --- g4f/Provider/Providers/AItianhu.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'g4f/Provider/Providers/AItianhu.py') 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: -- cgit v1.2.3