Skip to content

Commit

Permalink
Merge pull request #90 from UN-OCHA/develop
Browse files Browse the repository at this point in the history
v1.6.1
  • Loading branch information
cafuego authored Sep 13, 2024
2 parents a4f322f + d276806 commit 839856d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ public function getPromptTemplate(): string {
* {@inheritdoc}
*/
protected function generateRequestBody(string $prompt): array {
$max_tokens = $this->getPluginSetting('max_tokens', 512);
$max_tokens = (int) $this->getPluginSetting('max_tokens', 512);

return [
'inputText' => $prompt,
Expand Down

0 comments on commit 839856d

Please sign in to comment.