nextcloud / nextcloud/assistant

Trim spaces and new lines in the outputs

Open
#15 0 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
JavaScript
Stars
88
Forks
43
Avg merge
18h 49m
Merged PRs (30d)
3

Description

Describe the feature you'd like to request

Outputs vary depending on the LLM used but most of them provide unsanitised texts with multiple spaces and/or new lines in the beginning and end of the output text. This can be trimmed for a better presentation.

Describe the solution you'd like

It can be trimmed in the assistant or in the text processing manager itself. I am not sure which is better.

Describe alternatives you've considered

-

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the assistant output handling and the text processing manager mentioned in the issue. Determine where generated text is presented, then verify that leading and trailing spaces and newlines are removed without changing the content between them.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
ai
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.