Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit edb3465

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

File tree

Expand file treeCollapse file tree

1 file changed

+3
-3
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+3
-3
lines changed

‎README.md

Copy file name to clipboardExpand all lines: README.md
+3-3Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.