Skip to content

Commit f5ae33b

Browse files
author
ityaozm@gmail.com
committed
fix(app): Remove outdated OpenAI model options
- Removed outdated OpenAI model options for text generation - Fix #138
1 parent 4cd7798 commit f5ae33b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/Support/OpenAI.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ public function completions(array $parameters, ?callable $writer = null): Respon
7777
'model' => [
7878
'required',
7979
'string',
80-
'in:text-davinci-003,text-davinci-002,text-curie-001,text-babbage-001,text-ada-001',
80+
// 'in:text-davinci-003,text-davinci-002,text-curie-001,text-babbage-001,text-ada-001',
8181
],
8282
// 'prompt' => 'string|array',
8383
'prompt' => 'string',
@@ -146,7 +146,7 @@ public function chatCompletions(array $parameters, ?callable $writer = null): Re
146146
'model' => [
147147
'required',
148148
'string',
149-
'in:gpt-4,gpt-4-0613,gpt-4-32k,gpt-4-32k-0613,gpt-3.5-turbo,gpt-3.5-turbo-0613,gpt-3.5-turbo-16k,gpt-3.5-turbo-16k-0613',
149+
// 'in:gpt-4,gpt-4-0613,gpt-4-32k,gpt-4-32k-0613,gpt-3.5-turbo,gpt-3.5-turbo-0613,gpt-3.5-turbo-16k,gpt-3.5-turbo-16k-0613',
150150
],
151151
'messages' => 'required|array',
152152
'temperature' => 'numeric|between:0,2',

0 commit comments

Comments
 (0)