|
37 | 37 | ]);
|
38 | 38 |
|
39 | 39 | $completion = OpenAI::completions()->create([
|
40 |
| - 'model' => 'text-davinci-003', |
| 40 | + 'model' => 'gpt-3.5-turbo-instruct', |
41 | 41 | 'prompt' => 'PHP is ',
|
42 | 42 | ]);
|
43 | 43 |
|
|
50 | 50 | ]);
|
51 | 51 |
|
52 | 52 | OpenAI::completions()->create([
|
53 |
| - 'model' => 'text-davinci-003', |
| 53 | + 'model' => 'gpt-3.5-turbo-instruct', |
54 | 54 | 'prompt' => 'PHP is ',
|
55 | 55 | ]);
|
56 | 56 |
|
57 | 57 | OpenAI::completions()->create([
|
58 |
| - 'model' => 'text-davinci-003', |
| 58 | + 'model' => 'gpt-3.5-turbo-instruct', |
59 | 59 | 'prompt' => 'PHP is ',
|
60 | 60 | ]);
|
61 | 61 | })->expectExceptionMessage('No fake responses left');
|
|
74 | 74 | ]);
|
75 | 75 |
|
76 | 76 | $completion = OpenAI::completions()->create([
|
77 |
| - 'model' => 'text-davinci-003', |
| 77 | + 'model' => 'gpt-3.5-turbo-instruct', |
78 | 78 | 'prompt' => 'PHP is ',
|
79 | 79 | ]);
|
80 | 80 |
|
81 | 81 | expect($completion)
|
82 | 82 | ->id->toBe('cmpl-1');
|
83 | 83 |
|
84 | 84 | $completion = OpenAI::completions()->create([
|
85 |
| - 'model' => 'text-davinci-003', |
| 85 | + 'model' => 'gpt-3.5-turbo-instruct', |
86 | 86 | 'prompt' => 'PHP is ',
|
87 | 87 | ]);
|
88 | 88 |
|
|
96 | 96 | ]);
|
97 | 97 |
|
98 | 98 | OpenAI::completions()->create([
|
99 |
| - 'model' => 'text-davinci-003', |
| 99 | + 'model' => 'gpt-3.5-turbo-instruct', |
100 | 100 | 'prompt' => 'PHP is ',
|
101 | 101 | ]);
|
102 | 102 |
|
103 | 103 | OpenAI::assertSent(Completions::class, function (string $method, array $parameters): bool {
|
104 | 104 | return $method === 'create' &&
|
105 |
| - $parameters['model'] === 'text-davinci-003' && |
| 105 | + $parameters['model'] === 'gpt-3.5-turbo-instruct' && |
106 | 106 | $parameters['prompt'] === 'PHP is ';
|
107 | 107 | });
|
108 | 108 | });
|
|
114 | 114 |
|
115 | 115 | OpenAI::assertSent(Completions::class, function (string $method, array $parameters): bool {
|
116 | 116 | return $method === 'create' &&
|
117 |
| - $parameters['model'] === 'text-davinci-003' && |
| 117 | + $parameters['model'] === 'gpt-3.5-turbo-instruct' && |
118 | 118 | $parameters['prompt'] === 'PHP is ';
|
119 | 119 | });
|
120 | 120 | })->expectException(ExpectationFailedException::class);
|
|
125 | 125 | ]);
|
126 | 126 |
|
127 | 127 | OpenAI::completions()->create([
|
128 |
| - 'model' => 'text-davinci-003', |
| 128 | + 'model' => 'gpt-3.5-turbo-instruct', |
129 | 129 | 'prompt' => 'PHP is ',
|
130 | 130 | ]);
|
131 | 131 |
|
132 | 132 | OpenAI::completions()->assertSent(function (string $method, array $parameters): bool {
|
133 | 133 | return $method === 'create' &&
|
134 |
| - $parameters['model'] === 'text-davinci-003' && |
| 134 | + $parameters['model'] === 'gpt-3.5-turbo-instruct' && |
135 | 135 | $parameters['prompt'] === 'PHP is ';
|
136 | 136 | });
|
137 | 137 | });
|
|
143 | 143 | ]);
|
144 | 144 |
|
145 | 145 | OpenAI::completions()->create([
|
146 |
| - 'model' => 'text-davinci-003', |
| 146 | + 'model' => 'gpt-3.5-turbo-instruct', |
147 | 147 | 'prompt' => 'PHP is ',
|
148 | 148 | ]);
|
149 | 149 |
|
150 | 150 | OpenAI::completions()->create([
|
151 |
| - 'model' => 'text-davinci-003', |
| 151 | + 'model' => 'gpt-3.5-turbo-instruct', |
152 | 152 | 'prompt' => 'PHP is ',
|
153 | 153 | ]);
|
154 | 154 |
|
|
162 | 162 | ]);
|
163 | 163 |
|
164 | 164 | OpenAI::completions()->create([
|
165 |
| - 'model' => 'text-davinci-003', |
| 165 | + 'model' => 'gpt-3.5-turbo-instruct', |
166 | 166 | 'prompt' => 'PHP is ',
|
167 | 167 | ]);
|
168 | 168 |
|
|
181 | 181 | ]);
|
182 | 182 |
|
183 | 183 | OpenAI::completions()->create([
|
184 |
| - 'model' => 'text-davinci-003', |
| 184 | + 'model' => 'gpt-3.5-turbo-instruct', |
185 | 185 | 'prompt' => 'PHP is ',
|
186 | 186 | ]);
|
187 | 187 |
|
|
208 | 208 | ]);
|
209 | 209 |
|
210 | 210 | OpenAI::completions()->create([
|
211 |
| - 'model' => 'text-davinci-003', |
| 211 | + 'model' => 'gpt-3.5-turbo-instruct', |
212 | 212 | 'prompt' => 'PHP is ',
|
213 | 213 | ]);
|
214 | 214 |
|
|
0 commit comments