mirror of
https://github.com/nextcloud/server.git
synced 2026-06-11 01:30:50 -04:00
Merge pull request #49745 from nextcloud/fix/texttotextchatwithtools-translator-notes
fix(TextToTextChatWithTools): Add translator notes
This commit is contained in:
commit
4da101e2c0
1 changed files with 3 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue