Skip to content

Commit 05fa8f5

Browse files
committed
v.1.8.4
1 parent 49994ad commit 05fa8f5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "mastashake08/laravel-openai-api",
33
"description": "Add an OpenAI API and Artisan command easily into your projects. Generate images, or text. Can be integrated with Laravel Sanctum for token based access.",
4-
"version": "1.8.3",
4+
"version": "1.8.4",
55
"keywords": [
66
"mastashake08",
77
"laravel",

src/LaravelOpenaiApi.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ function generateImage($data): Prompt {
3636

3737
private function savePrompt($result, $data): Prompt {
3838
$prompt = new Prompt([
39-
'prompt_text' => array_key_exists('prompt', $data) ?? $data['prompt'] : $data['messages'],
39+
'prompt_text' => array_key_exists('prompt', $data) ? $data['prompt'] : $data['messages'],
4040
'data' => $result
4141
]);
4242
return $prompt;

0 commit comments

Comments
 (0)