Skip to content

Commit

Permalink
Merge pull request #4 from deepseek-php/bugfix/temprature-type
Browse files Browse the repository at this point in the history
bugfix temprature type
  • Loading branch information
omaralalwi authored Jan 17, 2025
2 parents 38e7981 + 0da79fa commit 841f2c7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
4 changes: 2 additions & 2 deletions src/DeepseekClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 841f2c7

Please sign in to comment.