Skip to content

Commit

Permalink
filter out the chat task type
Browse files Browse the repository at this point in the history
Signed-off-by: Julien Veyssier <[email protected]>
  • Loading branch information
julien-nc committed Jul 11, 2024
1 parent a23b3cf commit 1321b10
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/Service/AssistantService.php
Original file line number Diff line number Diff line change
Expand Up @@ -163,16 +163,16 @@ public function getAvailableTaskTypes(): array {
/** @var string $typeId */
foreach ($availableTaskTypes as $typeId => $taskTypeArray) {
// skip chat task type (not directly useful to the end user)
// if ($typeId === TextToTextChat::ID) {
// continue;
// }
if ($typeId === TextToTextChat::ID) {
continue;
}
$taskTypeArray['id'] = $typeId;
$taskTypeArray['priority'] = self::TASK_TYPE_PRIORITIES[$typeId] ?? 1000;

if ($typeId === TextToText::ID) {
$taskTypeArray['name'] = $this->l10n->t('Generate text');
$taskTypeArray['description'] = $this->l10n->t('Send a request to the Assistant, for example: write a first draft of a presentation, give me suggestions for a presentation, write a draft reply to my colleague.');
// add the chattyUI virtual taks type
// add the chattyUI virtual task type
$types[] = [
'id' => 'chatty-llm',
'name' => $this->l10n->t('Chat with AI'),
Expand Down

0 comments on commit 1321b10

Please sign in to comment.