diff --git a/composer.json b/composer.json index 44a9923..917d2b8 100644 --- a/composer.json +++ b/composer.json @@ -59,7 +59,7 @@ "role": "creator" } ], - "version": "1.0.2", + "version": "1.0.2.1", "require": { "php": "^8.1.0", "php-http/discovery": "^1.20.0", diff --git a/src/DeepseekClient.php b/src/DeepseekClient.php index abf2902..8ed1b2c 100644 --- a/src/DeepseekClient.php +++ b/src/DeepseekClient.php @@ -43,7 +43,7 @@ class DeepseekClient implements DeepseekClientContract */ protected bool $stream; - protected int $temperature; + protected float $temperature; /** * Initialize the DeepseekClient with a PSR-compliant HTTP client. @@ -126,7 +126,7 @@ public function withStream(bool $stream = true): self return $this; } - public function setTemperature(int $temperature): self + public function setTemperature(float $temperature): self { $this->temperature = $temperature; return $this;