From c12ce3756f44844d5bb14eadf8e9065d7c589928 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=84=E6=9C=9D=E6=99=96?= Date: Sun, 8 Oct 2023 05:44:48 +0800 Subject: [PATCH] Set the llm default value of max tokens to 0 --- src/LLM.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/LLM.php b/src/LLM.php index 8536004..e54d46e 100644 --- a/src/LLM.php +++ b/src/LLM.php @@ -34,7 +34,7 @@ public function __construct(protected ConfigInterface $config, protected ModelMa public function chat( array $messages, float $temperature = 0.9, - int $maxTokens = 1000, + int $maxTokens = 0, array $stop = [], array $functions = [], string $model = '',