Skip to content

Commit 0da79fa

Browse files
committed
bugfix temprature type
1 parent 38e7981 commit 0da79fa

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
"role": "creator"
6060
}
6161
],
62-
"version": "1.0.2",
62+
"version": "1.0.2.1",
6363
"require": {
6464
"php": "^8.1.0",
6565
"php-http/discovery": "^1.20.0",

src/DeepseekClient.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ class DeepseekClient implements DeepseekClientContract
4343
*/
4444
protected bool $stream;
4545

46-
protected int $temperature;
46+
protected float $temperature;
4747

4848
/**
4949
* Initialize the DeepseekClient with a PSR-compliant HTTP client.
@@ -126,7 +126,7 @@ public function withStream(bool $stream = true): self
126126
return $this;
127127
}
128128

129-
public function setTemperature(int $temperature): self
129+
public function setTemperature(float $temperature): self
130130
{
131131
$this->temperature = $temperature;
132132
return $this;

0 commit comments

Comments
 (0)