Merge pull request #49745 from nextcloud/fix/texttotextchatwithtools-translator-notes

fix(TextToTextChatWithTools): Add translator notes
This commit is contained in:
rakekniven 2024-12-10 11:39:21 +01:00 committed by GitHub
commit 4da101e2c0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -39,6 +39,7 @@ class TextToTextChatWithTools implements ITaskType {
* @since 31.0.0
*/
public function getName(): string {
// TRANSLATORS Tool calling, also known as function calling, is a structured way to give LLMs the ability to make requests back to the application that called it. You define the tools you want to make available to the model, and the model will make tool requests to your app as necessary to fulfill the prompts you give it.
return $this->l->t('Chat with tools');
}
@ -47,6 +48,7 @@ class TextToTextChatWithTools implements ITaskType {
* @since 31.0.0
*/
public function getDescription(): string {
// TRANSLATORS Tool calling, also known as function calling, is a structured way to give LLMs the ability to make requests back to the application that called it. You define the tools you want to make available to the model, and the model will make tool requests to your app as necessary to fulfill the prompts you give it.
return $this->l->t('Chat with the language model with tool calling support.');
}
@ -86,6 +88,7 @@ class TextToTextChatWithTools implements ITaskType {
),
// See https://platform.openai.com/docs/api-reference/chat/create#chat-create-tools for the format
'tools' => new ShapeDescriptor(
// TRANSLATORS Tool calling, also known as function calling, is a structured way to give LLMs the ability to make requests back to the application that called it. You define the tools you want to make available to the model, and the model will make tool requests to your app as necessary to fulfill the prompts you give it.
$this->l->t('Available tools'),
$this->l->t('The available tools in JSON format'),
EShapeType::Text