From dd0d6474dbac28c082c439f47db7cd0ef69fc2c2 Mon Sep 17 00:00:00 2001 From: Marcel Klehr Date: Tue, 10 Dec 2024 09:31:41 +0100 Subject: [PATCH] fix(TextToTextChatWithTools): Add translator notes Signed-off-by: Marcel Klehr --- .../TaskProcessing/TaskTypes/TextToTextChatWithTools.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/public/TaskProcessing/TaskTypes/TextToTextChatWithTools.php b/lib/public/TaskProcessing/TaskTypes/TextToTextChatWithTools.php index b992f33e132..e09211e940b 100644 --- a/lib/public/TaskProcessing/TaskTypes/TextToTextChatWithTools.php +++ b/lib/public/TaskProcessing/TaskTypes/TextToTextChatWithTools.php @@ -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