File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Filter options
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ Finally, you may use the `OpenAI` facade to access the OpenAI API:
44
44
use OpenAI\Laravel\Facades\OpenAI;
45
45
46
46
$result = OpenAI::completions()->create([
47
- 'model' => 'text-davinci-003 ',
47
+ 'model' => 'gpt-3.5-turbo-instruct ',
48
48
'prompt' => 'PHP is',
49
49
]);
50
50
@@ -102,7 +102,7 @@ OpenAI::fake([
102
102
]);
103
103
104
104
$completion = OpenAI::completions()->create([
105
- 'model' => 'text-davinci-003 ',
105
+ 'model' => 'gpt-3.5-turbo-instruct ',
106
106
'prompt' => 'PHP is ',
107
107
]);
108
108
@@ -115,7 +115,7 @@ After the requests have been sent there are various methods to ensure that the e
115
115
// assert completion create request was sent
116
116
OpenAI::assertSent(Completions::class, function (string $method, array $parameters): bool {
117
117
return $method === 'create' &&
118
- $parameters['model'] === 'text-davinci-003 ' &&
118
+ $parameters['model'] === 'gpt-3.5-turbo-instruct ' &&
119
119
$parameters['prompt'] === 'PHP is ';
120
120
});
121
121
```
You can’t perform that action at this time.
0 commit comments