Skip to content

Commit

Permalink
Set the llm default value of max tokens to 0
Browse files Browse the repository at this point in the history
  • Loading branch information
huangzhhui committed Oct 7, 2023
1 parent 1dc3900 commit c12ce37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/LLM.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 = '',
Expand Down

0 comments on commit c12ce37

Please sign in to comment.