Skip to content

Commit

Permalink
Update Chat.php
Browse files Browse the repository at this point in the history
  • Loading branch information
ogrre authored Jan 4, 2024
1 parent a9a8c00 commit d33342f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Models/Chat.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ public function gpt(string $prompt)
private function title(string $prompt)
{
if (sizeof($this->messages) < 4 and $this->title == 'New Chat') {
$content = "Résume ce prompt en quelques mots pour en faire un titre: " . $prompt;
$content = "Résume ce prompt en quelques mots: " . $prompt;

$response = $this->client->chat()->create([
'model' => config('chatgpt.openai.model'),
Expand Down

0 comments on commit d33342f

Please sign in to comment.