Skip to content

Commit efe308b

Browse files
authored
Plugin: AIHelper: Use new AI model from OpenAI
1 parent f4d8c9a commit efe308b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

plugin/ai_helper/AiHelperPlugin.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ public function openAiGetCompletionText(
7676
$ai = new OpenAi($apiKey, $organizationId);
7777

7878
$temperature = 0.2;
79-
$model = 'text-davinci-003';
79+
$model = 'gpt-3.5-turbo-instruct';
8080
$maxTokens = 2000;
8181
$frequencyPenalty = 0;
8282
$presencePenalty = 0.6;

plugin/ai_helper/src/openai/OpenAi.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
class OpenAi
77
{
8-
private $model = "text-davinci-003"; // See https://platform.openai.com/docs/models for possible models
8+
private $model = "gpt-3.5-turbo-instruct"; // See https://platform.openai.com/docs/models for possible models
99
private $headers;
1010
private $contentTypes;
1111
private $timeout = 0;

0 commit comments

Comments
 (0)