#3371272 Fixing phpcs errors/warnings
2 unresolved threads
2 unresolved threads
#3371272 Fixing phpcs errors/warnings.
Merge request reports
Activity
added 3 commits
-
92d81fbb...476c97a6 - 2 commits from branch
project:1.0.x
- 45f31cda - Pulled in commits from upstream.
-
92d81fbb...476c97a6 - 2 commits from branch
19 "GPT-3" => [ 20 "text-davinci-003" => "text-davinci-003", 21 "text-davinci-002" => "text-davinci-002", 22 "text-davinci-001" => "text-davinci-001", 23 "text-curie-001" => "text-curie-001", 24 "text-ada-001" => "text-ada-001", 25 "text-babbage-001" => "text-babbage-001", 26 "davinci" => "davinci", 27 "davinci-instruct-beta" => "davinci-instruct-beta", 28 "curie" => "curie", 29 "curie-instruct-beta" => "curie-instruct-beta", 30 "babbage" => "babbage", 31 "ada" => "ada", 26 32 ], 27 33 ]; 28 34 - Comment on lines 13 to 28
This part doesn't look correct, it has been reverted.
It should use the new models
7 /** 8 * OpenAI completion models. 9 * 10 * @var array 11 */ 12 protected $models = [ 13 "GPT-3" => [ 14 "text-davinci-003" => "text-davinci-003", 15 "text-davinci-002" => "text-davinci-002", 16 "text-davinci-001" => "text-davinci-001", 17 "text-curie-001" => "text-curie-001", 18 "text-ada-001" => "text-ada-001", 19 "text-babbage-001" => "text-babbage-001", 20 "davinci" => "davinci", 21 "davinci-instruct-beta" => "davinci-instruct-beta", 22 "curie" => "curie", 23 "curie-instruct-beta" => "curie-instruct-beta", 24 "babbage" => "babbage", 25 "ada" => "ada", 26 ], 27 ]; 28 7 /** 8 * OpenAI completion models. 9 * 10 * @var array $models 11 */ 12 protected array $models = [ 13 "GPT-3.5" => [ 14 "gpt-3.5-turbo" => "gpt-3.5-turbo", 15 "gpt-3.5-turbo-16k" => "gpt-3.5-turbo-16k", 16 ], 17 "GPT-4" => [ 18 "gpt-4" => "gpt-4", 19 "gpt-4-32k" => "gpt-4-32k", 20 ], 21 ]; 22
17 17 use OpenAI\Responses\Chat\CreateResponse; 18 18 use Rajentrivedi\TokenizerX\TokenizerX; 19 19 use Symfony\Component\DependencyInjection\ContainerInterface; 20 use Drupal\tmgmt\Translator\AvailableResult; changed this line in version 3 of the diff
added 3 commits
-
39f2be56...b42644b2 - 2 commits from branch
project:1.0.x
- 7a2a38ba - phpcs issue fixes
-
39f2be56...b42644b2 - 2 commits from branch
Please register or sign in to reply