Skip to content

Commit 7c9a79f

Browse files
authored
docs: moves to 4o-mini model in README.md examples (#123)
1 parent f03e468 commit 7c9a79f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ Finally, you may use the `OpenAI` facade to access the OpenAI API:
4747
use 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
121121
OpenAI::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
```

0 commit comments

Comments
 (0)