Skip to content

Commit edb3465

Browse files
authored
replace "text-davinci-003" by "gpt-3.5-turbo-instruct" in all examples (#65)
1 parent f6a4502 commit edb3465

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
@@ -44,7 +44,7 @@ Finally, you may use the `OpenAI` facade to access the OpenAI API:
4444
use OpenAI\Laravel\Facades\OpenAI;
4545

4646
$result = OpenAI::completions()->create([
47-
'model' => 'text-davinci-003',
47+
'model' => 'gpt-3.5-turbo-instruct',
4848
'prompt' => 'PHP is',
4949
]);
5050

@@ -102,7 +102,7 @@ OpenAI::fake([
102102
]);
103103

104104
$completion = OpenAI::completions()->create([
105-
'model' => 'text-davinci-003',
105+
'model' => 'gpt-3.5-turbo-instruct',
106106
'prompt' => 'PHP is ',
107107
]);
108108

@@ -115,7 +115,7 @@ After the requests have been sent there are various methods to ensure that the e
115115
// assert completion create request was sent
116116
OpenAI::assertSent(Completions::class, function (string $method, array $parameters): bool {
117117
return $method === 'create' &&
118-
$parameters['model'] === 'text-davinci-003' &&
118+
$parameters['model'] === 'gpt-3.5-turbo-instruct' &&
119119
$parameters['prompt'] === 'PHP is ';
120120
});
121121
```

0 commit comments

Comments
 (0)