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 93fbee8

Browse filesBrowse files
committed
replace "text-davinci-003" with "gpt-3.5-turbo-instruct" in tests
1 parent edb3465 commit 93fbee8
Copy full SHA for 93fbee8

File tree

Expand file treeCollapse file tree

1 file changed

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

1 file changed

+15
-15
lines changed

‎tests/Facades/OpenAI.php

Copy file name to clipboardExpand all lines: tests/Facades/OpenAI.php
+15-15Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
]);
3838

3939
$completion = OpenAI::completions()->create([
40-
'model' => 'text-davinci-003',
40+
'model' => 'gpt-3.5-turbo-instruct',
4141
'prompt' => 'PHP is ',
4242
]);
4343

@@ -50,12 +50,12 @@
5050
]);
5151

5252
OpenAI::completions()->create([
53-
'model' => 'text-davinci-003',
53+
'model' => 'gpt-3.5-turbo-instruct',
5454
'prompt' => 'PHP is ',
5555
]);
5656

5757
OpenAI::completions()->create([
58-
'model' => 'text-davinci-003',
58+
'model' => 'gpt-3.5-turbo-instruct',
5959
'prompt' => 'PHP is ',
6060
]);
6161
})->expectExceptionMessage('No fake responses left');
@@ -74,15 +74,15 @@
7474
]);
7575

7676
$completion = OpenAI::completions()->create([
77-
'model' => 'text-davinci-003',
77+
'model' => 'gpt-3.5-turbo-instruct',
7878
'prompt' => 'PHP is ',
7979
]);
8080

8181
expect($completion)
8282
->id->toBe('cmpl-1');
8383

8484
$completion = OpenAI::completions()->create([
85-
'model' => 'text-davinci-003',
85+
'model' => 'gpt-3.5-turbo-instruct',
8686
'prompt' => 'PHP is ',
8787
]);
8888

@@ -96,13 +96,13 @@
9696
]);
9797

9898
OpenAI::completions()->create([
99-
'model' => 'text-davinci-003',
99+
'model' => 'gpt-3.5-turbo-instruct',
100100
'prompt' => 'PHP is ',
101101
]);
102102

103103
OpenAI::assertSent(Completions::class, function (string $method, array $parameters): bool {
104104
return $method === 'create' &&
105-
$parameters['model'] === 'text-davinci-003' &&
105+
$parameters['model'] === 'gpt-3.5-turbo-instruct' &&
106106
$parameters['prompt'] === 'PHP is ';
107107
});
108108
});
@@ -114,7 +114,7 @@
114114

115115
OpenAI::assertSent(Completions::class, function (string $method, array $parameters): bool {
116116
return $method === 'create' &&
117-
$parameters['model'] === 'text-davinci-003' &&
117+
$parameters['model'] === 'gpt-3.5-turbo-instruct' &&
118118
$parameters['prompt'] === 'PHP is ';
119119
});
120120
})->expectException(ExpectationFailedException::class);
@@ -125,13 +125,13 @@
125125
]);
126126

127127
OpenAI::completions()->create([
128-
'model' => 'text-davinci-003',
128+
'model' => 'gpt-3.5-turbo-instruct',
129129
'prompt' => 'PHP is ',
130130
]);
131131

132132
OpenAI::completions()->assertSent(function (string $method, array $parameters): bool {
133133
return $method === 'create' &&
134-
$parameters['model'] === 'text-davinci-003' &&
134+
$parameters['model'] === 'gpt-3.5-turbo-instruct' &&
135135
$parameters['prompt'] === 'PHP is ';
136136
});
137137
});
@@ -143,12 +143,12 @@
143143
]);
144144

145145
OpenAI::completions()->create([
146-
'model' => 'text-davinci-003',
146+
'model' => 'gpt-3.5-turbo-instruct',
147147
'prompt' => 'PHP is ',
148148
]);
149149

150150
OpenAI::completions()->create([
151-
'model' => 'text-davinci-003',
151+
'model' => 'gpt-3.5-turbo-instruct',
152152
'prompt' => 'PHP is ',
153153
]);
154154

@@ -162,7 +162,7 @@
162162
]);
163163

164164
OpenAI::completions()->create([
165-
'model' => 'text-davinci-003',
165+
'model' => 'gpt-3.5-turbo-instruct',
166166
'prompt' => 'PHP is ',
167167
]);
168168

@@ -181,7 +181,7 @@
181181
]);
182182

183183
OpenAI::completions()->create([
184-
'model' => 'text-davinci-003',
184+
'model' => 'gpt-3.5-turbo-instruct',
185185
'prompt' => 'PHP is ',
186186
]);
187187

@@ -208,7 +208,7 @@
208208
]);
209209

210210
OpenAI::completions()->create([
211-
'model' => 'text-davinci-003',
211+
'model' => 'gpt-3.5-turbo-instruct',
212212
'prompt' => 'PHP is ',
213213
]);
214214

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.