1441 |
ariadna |
1 |
<?php
|
|
|
2 |
// This file is part of Moodle - http://moodle.org/
|
|
|
3 |
//
|
|
|
4 |
// Moodle is free software: you can redistribute it and/or modify
|
|
|
5 |
// it under the terms of the GNU General Public License as published by
|
|
|
6 |
// the Free Software Foundation, either version 3 of the License, or
|
|
|
7 |
// (at your option) any later version.
|
|
|
8 |
//
|
|
|
9 |
// Moodle is distributed in the hope that it will be useful,
|
|
|
10 |
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
11 |
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
12 |
// GNU General Public License for more details.
|
|
|
13 |
//
|
|
|
14 |
// You should have received a copy of the GNU General Public License
|
|
|
15 |
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
|
|
|
16 |
|
|
|
17 |
/**
|
|
|
18 |
* Strings for component aiprovider_openai, language 'en'.
|
|
|
19 |
*
|
|
|
20 |
* @package aiprovider_openai
|
|
|
21 |
* @copyright 2024 Matt Porritt <matt.porritt@moodle.com>
|
|
|
22 |
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
|
|
23 |
*/
|
|
|
24 |
|
|
|
25 |
$string['action:explain_text:endpoint'] = 'API endpoint';
|
|
|
26 |
$string['action:explain_text:model'] = 'AI model';
|
|
|
27 |
$string['action:explain_text:model_help'] = 'The model used to explain the provided text.';
|
|
|
28 |
$string['action:explain_text:systeminstruction'] = 'System instruction';
|
|
|
29 |
$string['action:explain_text:systeminstruction_help'] = 'This instruction is sent to the AI model along with the user\'s prompt. Editing this instruction is not recommended unless absolutely required.';
|
|
|
30 |
$string['action:generate_image:endpoint'] = 'API endpoint';
|
|
|
31 |
$string['action:generate_image:model'] = 'AI model';
|
|
|
32 |
$string['action:generate_image:model_help'] = 'The model used to generate images from user prompts.';
|
|
|
33 |
$string['action:generate_text:endpoint'] = 'API endpoint';
|
|
|
34 |
$string['action:generate_text:model'] = 'AI model';
|
|
|
35 |
$string['action:generate_text:model_help'] = 'The model used to generate the text response.';
|
|
|
36 |
$string['action:generate_text:systeminstruction'] = 'System instruction';
|
|
|
37 |
$string['action:generate_text:systeminstruction_help'] = 'This instruction is sent to the AI model along with the user\'s prompt. Editing this instruction is not recommended unless absolutely required.';
|
|
|
38 |
$string['action:summarise_text:endpoint'] = 'API endpoint';
|
|
|
39 |
$string['action:summarise_text:model'] = 'AI model';
|
|
|
40 |
$string['action:summarise_text:model_help'] = 'The model used to summarise the provided text.';
|
|
|
41 |
$string['action:summarise_text:systeminstruction'] = 'System instruction';
|
|
|
42 |
$string['action:summarise_text:systeminstruction_help'] = 'This instruction is sent to the AI model along with the user\'s prompt. Editing this instruction is not recommended unless absolutely required.';
|
|
|
43 |
$string['apikey'] = 'OpenAI API key';
|
|
|
44 |
$string['apikey_help'] = 'Get a key from your <a href="https://platform.openai.com/account/api-keys" target="_blank">OpenAI API keys</a>.';
|
|
|
45 |
$string['custom_model_name'] = 'Custom model name';
|
|
|
46 |
$string['extraparams'] = 'Extra parameters';
|
|
|
47 |
$string['extraparams_help'] = 'Extra parameters can be configured here. We support JSON format. For example:
|
|
|
48 |
<pre>
|
|
|
49 |
{
|
|
|
50 |
"temperature": 0.5,
|
|
|
51 |
"max_completion_tokens": 100
|
|
|
52 |
}
|
|
|
53 |
</pre>';
|
|
|
54 |
$string['invalidjson'] = 'Invalid JSON string';
|
|
|
55 |
$string['orgid'] = 'OpenAI organization ID';
|
|
|
56 |
$string['orgid_help'] = 'Get your OpenAI organization ID from your <a href="https://platform.openai.com/account/org-settings" target="_blank">OpenAI account</a>.';
|
|
|
57 |
$string['pluginname'] = 'OpenAI API provider';
|
|
|
58 |
$string['privacy:metadata'] = 'The OpenAI API provider plugin does not store any personal data.';
|
|
|
59 |
$string['privacy:metadata:aiprovider_openai:externalpurpose'] = 'This information is sent to the OpenAI API in order for a response to be generated. Your OpenAI account settings may change how OpenAI stores and retains this data. No user data is explicitly sent to OpenAI or stored in Moodle LMS by this plugin.';
|
|
|
60 |
$string['privacy:metadata:aiprovider_openai:model'] = 'The model used to generate the response.';
|
|
|
61 |
$string['privacy:metadata:aiprovider_openai:numberimages'] = 'When generating images the number of images used in the response.';
|
|
|
62 |
$string['privacy:metadata:aiprovider_openai:prompttext'] = 'The user entered text prompt used to generate the response.';
|
|
|
63 |
$string['privacy:metadata:aiprovider_openai:responseformat'] = 'The format of the response. When generating images.';
|
|
|
64 |
$string['settings'] = 'Settings';
|
|
|
65 |
$string['settings_frequency_penalty'] = 'frequency_penalty';
|
|
|
66 |
$string['settings_frequency_penalty_help'] = 'The frequency penalty adjusts how often words are repeated. The higher the penalty, the less repetitions in the generated text.';
|
|
|
67 |
$string['settings_help'] = 'Adjust the settings below to customise how requests are sent to OpenAI.';
|
|
|
68 |
$string['settings_max_completion_tokens'] = 'max_completion_tokens';
|
|
|
69 |
$string['settings_max_completion_tokens_help'] = 'The maximum number of tokens used in the generated text.';
|
|
|
70 |
$string['settings_presence_penalty'] = 'presence_penalty';
|
|
|
71 |
$string['settings_presence_penalty_help'] = 'The presence penalty encourages the model to use new words by increasing the likelihood of choosing words it hasn\'t used before. A higher value makes the generated text more diverse, while a lower value allows more repetition.';
|
|
|
72 |
$string['settings_top_p'] = 'top_p';
|
|
|
73 |
$string['settings_top_p_help'] = 'top_p (nucleus sampling) determines how many possible words to consider. A high value (e.g. 0.9) means the model looks at more words, which makes the generated text more diverse.';
|
|
|
74 |
|
|
|
75 |
// Deprecated since Moodle 5.0.
|
|
|
76 |
$string['action:generate_image:model_desc'] = 'The model used to generate images from user prompts.';
|
|
|
77 |
$string['action:generate_text:model_desc'] = 'The model used to generate the text response.';
|
|
|
78 |
$string['action:generate_text:systeminstruction_desc'] = 'This instruction is sent to the AI model along with the user\'s prompt. Editing this instruction is not recommended unless absolutely required.';
|
|
|
79 |
$string['action:summarise_text:model_desc'] = 'The model used to summarise the provided text.';
|
|
|
80 |
$string['action:summarise_text:systeminstruction_desc'] = 'This instruction is sent to the AI model along with the user\'s prompt. Editing this instruction is not recommended unless absolutely required.';
|
|
|
81 |
$string['apikey_desc'] = 'Get a key from <a href="https://platform.openai.com/account/api-keys">OpenAI Platform API keys</a>.';
|
|
|
82 |
$string['enableglobalratelimit'] = 'Set site-wide rate limit';
|
|
|
83 |
$string['enableglobalratelimit_desc'] = 'Limit the number of requests that the OpenAI API provider can receive across the entire site every hour.';
|
|
|
84 |
$string['enableuserratelimit'] = 'Set user rate limit';
|
|
|
85 |
$string['enableuserratelimit_desc'] = 'Limit the number of requests each user can make to the OpenAI API provider every hour.';
|
|
|
86 |
$string['globalratelimit'] = 'Maximum number of site-wide requests';
|
|
|
87 |
$string['globalratelimit_desc'] = 'The number of site-wide requests allowed per hour.';
|
|
|
88 |
$string['orgid_desc'] = 'Get an OpenAI organization ID from your <a href="https://platform.openai.com/account/org-settings">OpenAI Platform account</a>.';
|
|
|
89 |
$string['userratelimit'] = 'Maximum number of requests per user';
|
|
|
90 |
$string['userratelimit_desc'] = 'The number of requests allowed per hour, per user.';
|
|
|
91 |
$string['settings_max_tokens'] = 'max_tokens';
|
|
|
92 |
$string['settings_max_tokens_help'] = 'The maximum number of tokens used in the generated text.';
|