Skip to content

Commit 62435cc

Browse files
committed
v1.7.0
1 parent c8ebce0 commit 62435cc

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-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.6.9",
4+
"version": "1.7.0",
55
"keywords": [
66
"mastashake08",
77
"laravel",

src/Http/Controllers/PromptController.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ function generateResult(Request $request) {
1010

1111
$ai = new LaravelOpenaiApi();
1212
$prompt = $ai->generateResult($request->type, $request->except(['type']));
13-
return response()->json($prompt);
13+
return response()->json([
14+
'data' => $prompt
15+
]);
1416
}
1517
}

0 commit comments

Comments
 (0)