obsidian-copilot icon indicating copy to clipboard operation
obsidian-copilot copied to clipboard

Make sure responses are not wrapped in <text></text>

Open tbergeron opened this issue 11 months ago • 7 comments

  • [x] Disable all other plugins besides Copilot (required)
  • [x] Screenshot of note + Copilot chat pane + dev console added (required)

Copilot version: 2.8.5

(Bug report without the above will be closed)

Describe how to reproduce Using gpt-4o-mini, type the word "initiliazation" (with the typo), select it and run the command Copilot: Fix grammar and spelling of selection.

Expected behavior It should return a response not wrapped in such tags.

Screenshots Image

tbergeron avatar Feb 13 '25 06:02 tbergeron

FYI: It's been happening every single time as of today.

tbergeron avatar Feb 26 '25 19:02 tbergeron

I confirm the issue. It happens in 90% of all calls. Other plugins don't interfere.

durach avatar Feb 27 '25 16:02 durach

I can't reproduce this. Can you @zeroliu ?

logancyang avatar Feb 28 '25 23:02 logancyang

@tbergeron also, can you update to 2.8.6

logancyang avatar Feb 28 '25 23:02 logancyang

I am on 2.8.6 and may provide more debug information if needed. By the way, the issue happens only with Fix grammar and spelling for the selection, and it looks like it's okay for other commands.

durach avatar Mar 01 '25 08:03 durach

@tbergeron also, can you update to 2.8.6

I've been on 2.8.6 and it's been worse for some reason. As @durach said, it only happens with the Fix grammar and spelling for the selection command.

tbergeron avatar Mar 01 '25 09:03 tbergeron

I'm working on a custom command revamp and it allows you to update the command prompt to anything you want. This issue relates to your short original text or the chat model. In a future version, you can update the prompt not to include <text></text> in the prompt.

zeroliu avatar Mar 01 '25 17:03 zeroliu