Skip to content

Commit

Permalink
v.1.8.4
Browse files Browse the repository at this point in the history
  • Loading branch information
mastashake08 committed Apr 10, 2023
1 parent 49994ad commit 05fa8f5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "mastashake08/laravel-openai-api",
"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.",
"version": "1.8.3",
"version": "1.8.4",
"keywords": [
"mastashake08",
"laravel",
Expand Down
2 changes: 1 addition & 1 deletion src/LaravelOpenaiApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ function generateImage($data): Prompt {

private function savePrompt($result, $data): Prompt {
$prompt = new Prompt([
'prompt_text' => array_key_exists('prompt', $data) ?? $data['prompt'] : $data['messages'],
'prompt_text' => array_key_exists('prompt', $data) ? $data['prompt'] : $data['messages'],
'data' => $result
]);
return $prompt;
Expand Down

0 comments on commit 05fa8f5

Please sign in to comment.