Open kohane27 opened 1 year ago
@jackMort
TL;DR: if the "prompt" contains the word digit
or Aṅguttaranikāya
or word stem sav
(as in saving), the whole entry seems to be discarded. Very weird ikr. Please see below.
If the "prompt" contains the word "digit" or word stem "sav" (as in saving) in the prompt, it won't work.
The reason why "UX/UI Developer" and "IT Architect" don't work is because they both contain the word "digit".
Doesn't work:
"act","prompt"
"UX/UI Developer","digit"
Work:
"act","prompt"
"UX/UI Developer","digi"
The reason why "Buddha" doesn't work is because it contains the word Aṅguttaranikāya
.
Another example:
Doesn't work:
"act","prompt"
"Instructor","savi"
Work:
"act","prompt"
"Instructor","sav"
There doesn't seem to have any patterns to it.
If you're a user facing this issue, just take the prompt and test out sentence by sentence, until you narrow down to the buggy word.
To quickly debug, point predefined_chat_gpt_prompts
to a local file so you don't need to fetch or update from some online csv or gist:
{
"jackMort/ChatGPT.nvim",
event = "VeryLazy",
config = function()
require("chatgpt").setup({
predefined_chat_gpt_prompts = "file:///" .. vim.fn.expand("~") .. "/.config/nvim/gpt_prompt.csv",
})
end,
dependencies = {
"MunifTanjim/nui.nvim",
"nvim-lua/plenary.nvim",
"nvim-telescope/telescope.nvim"
}
}
Thank you.
I did some more testing and have the following finding:
"act","prompt"
"test1","find docs"
"test2","virtual doctor"
These two "prompt" won't show up.
"test1" is taken from "Developer Relations consultant". "test2" is taken from "Doctor".
Hopefully it helps.
Hello @jackMort . Hope you're doing well. Thank you for creating
chatgpt.nvim
.Description
I realized that the following entries from prompts.csv are not displayed in
telescope.nvim
for selection:Steps to reproduce
:ChatGPTActAs
Please see the picture above
Isolated entries
I have then isolated the entries as below:
:ChatGPTActAs
and there is no entry in telescope.nvim for selectionWhat I have tried
I thought it's the length issue. But longer prompts like "Technology Transferer" show up without problem.
Any input is much appreciated. Thank you.