Skip to content

Commit

Permalink
fix(app): Remove outdated OpenAI model options
Browse files Browse the repository at this point in the history
- Removed outdated OpenAI model options for text generation
- Fix #138
  • Loading branch information
[email protected] committed Jun 24, 2024
1 parent 4cd7798 commit f5ae33b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/Support/OpenAI.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public function completions(array $parameters, ?callable $writer = null): Respon
'model' => [
'required',
'string',
'in:text-davinci-003,text-davinci-002,text-curie-001,text-babbage-001,text-ada-001',
// 'in:text-davinci-003,text-davinci-002,text-curie-001,text-babbage-001,text-ada-001',
],
// 'prompt' => 'string|array',
'prompt' => 'string',
Expand Down Expand Up @@ -146,7 +146,7 @@ public function chatCompletions(array $parameters, ?callable $writer = null): Re
'model' => [
'required',
'string',
'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',
// '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',
],
'messages' => 'required|array',
'temperature' => 'numeric|between:0,2',
Expand Down

0 comments on commit f5ae33b

Please sign in to comment.