Skip to content

Commit da6b3b7

Browse files
committed
1 parent 92c31c0 commit da6b3b7

File tree

4 files changed

+9
-10
lines changed

4 files changed

+9
-10
lines changed

app/Http/Controllers/Auth/NewPasswordController.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ function (User $user) use ($request) {
6161
// redirect them back to where they came from with their error message.
6262
if ($status == Password::PASSWORD_RESET) {
6363
$user = User::where('email', $request->email)->firstOrFail();
64-
64+
6565
if ($user->isParent()) {
6666
return redirect()->route('parent.login')->with('status', __($status));
6767
}

app/Services/AI/OpenAIService.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,9 @@ public function createStream(): Dto\AIContentDto
5353
}
5454
}
5555

56-
public function addMessage(string $role, string $content): self
56+
public function addMessage(string $role, ?string $content): self
5757
{
58-
if (trim($content) === '') {
58+
if (is_null($content) || trim($content) === '') {
5959
throw new InvalidArgumentException('Content cannot be null or empty');
6060
}
6161

app/Services/Adapters/AI/OpenAI/OpenAIAdapter.php

-1
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,6 @@ function () {
131131

132132
echo 'data: '.json_encode($data, JSON_THROW_ON_ERROR)."\n\n";
133133

134-
ob_flush();
135134
flush();
136135

137136
sleep(0.5);

package-lock.json

+6-6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)