aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrakekniven <2069590+rakekniven@users.noreply.github.com>2024-12-10 11:39:21 +0100
committerGitHub <noreply@github.com>2024-12-10 11:39:21 +0100
commit4da101e2c0e7196415a046c6caaeac2c2290a667 (patch)
tree34fa619e3c16ba037efa00c0ed42cbee602da25b
parent5af0d137e7ba016488e3717e28d698fda195dc24 (diff)
parentdd0d6474dbac28c082c439f47db7cd0ef69fc2c2 (diff)
downloadnextcloud-server-4da101e2c0e7196415a046c6caaeac2c2290a667.tar.gz
nextcloud-server-4da101e2c0e7196415a046c6caaeac2c2290a667.zip
Merge pull request #49745 from nextcloud/fix/texttotextchatwithtools-translator-notes
fix(TextToTextChatWithTools): Add translator notes
-rw-r--r--lib/public/TaskProcessing/TaskTypes/TextToTextChatWithTools.php3
1 files changed, 3 insertions, 0 deletions
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