File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ Finally, you may use the `OpenAI` facade to access the OpenAI API:
4747use OpenAI\Laravel\Facades\OpenAI;
4848
4949$result = OpenAI::chat()->create([
50- 'model' => 'gpt-3.5-turbo ',
50+ 'model' => 'gpt-4o-mini ',
5151 'messages' => [
5252 ['role' => 'user', 'content' => 'Hello!'],
5353 ],
@@ -107,7 +107,7 @@ OpenAI::fake([
107107]);
108108
109109$completion = OpenAI::completions()->create([
110- 'model' => 'gpt-3.5-turbo-instruct ',
110+ 'model' => 'gpt-4o-mini ',
111111 'prompt' => 'PHP is ',
112112]);
113113
@@ -120,7 +120,7 @@ After the requests have been sent there are various methods to ensure that the e
120120// assert completion create request was sent
121121OpenAI::assertSent(Completions::class, function (string $method, array $parameters): bool {
122122 return $method === 'create' &&
123- $parameters['model'] === 'gpt-3.5-turbo-instruct ' &&
123+ $parameters['model'] === 'gpt-4o-mini ' &&
124124 $parameters['prompt'] === 'PHP is ';
125125});
126126```
You can’t perform that action at this time.
0 commit comments