New add-on to interact with chatGPT. #addonrelesae


Nike
 

Hi, I created add-on to interact with chatGPT. 
For people who don't know chatGPT, it is very powerful and intelligent AI which can answer any questions (sometimes it's incorrect, so don't be too dependent on it.) 

Here is the repository [nvda-chatGPT](https://github.com/mo29cg/nvda-chatGPT
Here is the direct download link [donwload](https://github.com/mo29cg/nvda-chatGPT/releases/latest/download/nvdaChatGPT.nvda-addon

You need chatGPT api key (you can get it for free) to use this add-on. 
It might take time to create an account, and get api key for some people, but I think it's worth it, because it's quite useful to have an assistant which can answer any questions. 

This is how to get the api key.

1. go to https://platform.openai.com/account/api-keys
2. login (make an account, if you don't have one)
3. press the button "Create new secret key‍"
4. go to nvda - preference - settings - askChatGPT, and put the api key.

This is how to use it. 
First, select any words you wish to know the meaning of, or questions you wish to ask. 
Then use the either of below. 
• NVDA+shift+A Ask the meaning of selected word.
• NVDA+shift+L Ask the question.

I would appreciate any suggestions, corrections, questions. 
Feel free to it, thanks.


Noelia Ruiz
 

Welcome.
Seeing your default commands, I can point out that NVDA+shift+a is
used in desktop keyboards to read all with review cursor.
Cheers.

2023-03-13 12:16 GMT+01:00, Nike <lcong5946@...>:

Hi, I created add-on to interact with chatGPT.
For people who don't know chatGPT, it is very powerful and intelligent AI
which can answer any questions (sometimes it's incorrect, so don't be too
dependent on it.)

Here is the repository [nvda-chatGPT](
https://github.com/mo29cg/nvda-chatGPT (
https://github.com/mo29cg/nvda-chatGP ) )
Here is the direct download link [donwload](
https://github.com/mo29cg/nvda-chatGPT/releases/latest/download/nvdaChatGPT.nvda-addon
)

You need chatGPT api key (you can get it for free) to use this add-on.
It might take time to create an account, and get api key for some people,
but I think it's worth it, because it's quite useful to have an assistant
which can answer any questions.

This is how to get the api key.

1. go to https://platform.openai.com/account/api-keys
2. login (make an account, if you don't have one)
3. press the button "Create new secret key‍"
4. go to nvda - preference - settings - askChatGPT, and put the api key.

This is how to use it.
First, select any words you wish to know the meaning of, or questions you
wish to ask.
Then use the either of below.
• NVDA+shift+A Ask the meaning of selected word.
• NVDA+shift+L Ask the question.

I would appreciate any suggestions, corrections, questions.
Feel free to it, thanks.






Nike
 

Oh, thanks, I'll change to something else.

On Mon, Mar 13, 2023 at 8:21 PM Noelia Ruiz <nrm1977@...> wrote:
Welcome.
Seeing your default commands, I can point out that NVDA+shift+a is
used in desktop keyboards to read all with review cursor.
Cheers.

2023-03-13 12:16 GMT+01:00, Nike <lcong5946@...>:
> Hi, I created add-on to interact with chatGPT.
> For people who don't know chatGPT, it is very powerful and intelligent AI
> which can answer any questions (sometimes it's incorrect, so don't be too
> dependent on it.)
>
> Here is the repository [nvda-chatGPT](
> https://github.com/mo29cg/nvda-chatGPT (
> https://github.com/mo29cg/nvda-chatGP ) )
> Here is the direct download link [donwload](
> https://github.com/mo29cg/nvda-chatGPT/releases/latest/download/nvdaChatGPT.nvda-addon
> )
>
> You need chatGPT api key (you can get it for free) to use this add-on.
> It might take time to create an account, and get api key for some people,
> but I think it's worth it, because it's quite useful to have an assistant
> which can answer any questions.
>
> This is how to get the api key.
>
> 1. go to https://platform.openai.com/account/api-keys
> 2. login (make an account, if you don't have one)
> 3. press the button "Create new secret key‍"
> 4. go to nvda - preference - settings - askChatGPT, and put the api key.
>
> This is how to use it.
> First, select any words you wish to know the meaning of, or questions you
> wish to ask.
> Then use the either of below.
> • NVDA+shift+A Ask the meaning of selected word.
> • NVDA+shift+L Ask the question.
>
> I would appreciate any suggestions, corrections, questions.
> Feel free to it, thanks.
>
>
>
>
>
>






Devin Prater
 

Looks like your sentence command isn't hooked up. Both of the commands ask the meaning of a word.
Devin Prater




On Mon, Mar 13, 2023 at 6:42 AM Nike <lcong5946@...> wrote:
Oh, thanks, I'll change to something else.

On Mon, Mar 13, 2023 at 8:21 PM Noelia Ruiz <nrm1977@...> wrote:
Welcome.
Seeing your default commands, I can point out that NVDA+shift+a is
used in desktop keyboards to read all with review cursor.
Cheers.

2023-03-13 12:16 GMT+01:00, Nike <lcong5946@...>:
> Hi, I created add-on to interact with chatGPT.
> For people who don't know chatGPT, it is very powerful and intelligent AI
> which can answer any questions (sometimes it's incorrect, so don't be too
> dependent on it.)
>
> Here is the repository [nvda-chatGPT](
> https://github.com/mo29cg/nvda-chatGPT (
> https://github.com/mo29cg/nvda-chatGP ) )
> Here is the direct download link [donwload](
> https://github.com/mo29cg/nvda-chatGPT/releases/latest/download/nvdaChatGPT.nvda-addon
> )
>
> You need chatGPT api key (you can get it for free) to use this add-on.
> It might take time to create an account, and get api key for some people,
> but I think it's worth it, because it's quite useful to have an assistant
> which can answer any questions.
>
> This is how to get the api key.
>
> 1. go to https://platform.openai.com/account/api-keys
> 2. login (make an account, if you don't have one)
> 3. press the button "Create new secret key‍"
> 4. go to nvda - preference - settings - askChatGPT, and put the api key.
>
> This is how to use it.
> First, select any words you wish to know the meaning of, or questions you
> wish to ask.
> Then use the either of below.
> • NVDA+shift+A Ask the meaning of selected word.
> • NVDA+shift+L Ask the question.
>
> I would appreciate any suggestions, corrections, questions.
> Feel free to it, thanks.
>
>
>
>
>
>






Simone Dal Maso
 

Hello,
unfortunately it seems not working with NVDA 2023.1.
I changed the manifest.ini so the addon start.
I put the secret key, but when I press nvda-shift-l for example, I obtain this from the log:

ERROR - stderr (14:14:44.895) - Thread-12 (13368):
Exception in thread Thread-12:
Traceback (most recent call last):
  File "threading.pyc", line 926, in _bootstrap_inner
  File "threading.pyc", line 870, in run
  File "D:\Users\MI09424\Desktop\xnvda\userConfig\addons\nvdaChatGPT\globalPlugins\nvdaChatGPT\__init__.py", line 110, in askChatGPT
    ui.message(functionStartMessage)
  File "ui.pyc", line 133, in message
  File "braille.pyc", line 2307, in message
  File "braille.pyc", line 2321, in _resetMessageTimer
  File "wx\core.pyc", line 3451, in __init__
  File "wx\core.pyc", line 3472, in Start
wx._core.wxAssertionError: C++ assertion "wxThread::IsMain()" failed at ..\..\src\common\timerimpl.cpp(57) in wxTimerImpl::Start(): timer can only be started from the main thread




Il 13/03/2023 13:52, Devin Prater ha scritto:

Looks like your sentence command isn't hooked up. Both of the commands ask the meaning of a word.
Devin Prater




On Mon, Mar 13, 2023 at 6:42 AM Nike <lcong5946@...> wrote:
Oh, thanks, I'll change to something else.

On Mon, Mar 13, 2023 at 8:21 PM Noelia Ruiz <nrm1977@...> wrote:
Welcome.
Seeing your default commands, I can point out that NVDA+shift+a is
used in desktop keyboards to read all with review cursor.
Cheers.

2023-03-13 12:16 GMT+01:00, Nike <lcong5946@...>:
> Hi, I created add-on to interact with chatGPT.
> For people who don't know chatGPT, it is very powerful and intelligent AI
> which can answer any questions (sometimes it's incorrect, so don't be too
> dependent on it.)
>
> Here is the repository [nvda-chatGPT](
> https://github.com/mo29cg/nvda-chatGPT (
> https://github.com/mo29cg/nvda-chatGP ) )
> Here is the direct download link [donwload](
> https://github.com/mo29cg/nvda-chatGPT/releases/latest/download/nvdaChatGPT.nvda-addon
> )
>
> You need chatGPT api key (you can get it for free) to use this add-on.
> It might take time to create an account, and get api key for some people,
> but I think it's worth it, because it's quite useful to have an assistant
> which can answer any questions.
>
> This is how to get the api key.
>
> 1. go to https://platform.openai.com/account/api-keys
> 2. login (make an account, if you don't have one)
> 3. press the button "Create new secret key‍"
> 4. go to nvda - preference - settings - askChatGPT, and put the api key.
>
> This is how to use it.
> First, select any words you wish to know the meaning of, or questions you
> wish to ask.
> Then use the either of below.
> • NVDA+shift+A Ask the meaning of selected word.
> • NVDA+shift+L Ask the question.
>
> I would appreciate any suggestions, corrections, questions.
> Feel free to it, thanks.
>
>
>
>
>
>







Simone Dal Maso
 

I reply to my message because the problem is the display braille.
I mean, the addon doesn't work if you have a display braille connected.
If you could fix this I really will be grateful!
Anyway, I tried it and wow... it works really well.
I have some ideas but for now let's finx the main problems!





Il 13/03/2023 14:16, Simone Dal Maso via groups.io ha scritto:

Hello,
unfortunately it seems not working with NVDA 2023.1.
I changed the manifest.ini so the addon start.
I put the secret key, but when I press nvda-shift-l for example, I obtain this from the log:

ERROR - stderr (14:14:44.895) - Thread-12 (13368):
Exception in thread Thread-12:
Traceback (most recent call last):
  File "threading.pyc", line 926, in _bootstrap_inner
  File "threading.pyc", line 870, in run
  File "D:\Users\MI09424\Desktop\xnvda\userConfig\addons\nvdaChatGPT\globalPlugins\nvdaChatGPT\__init__.py", line 110, in askChatGPT
    ui.message(functionStartMessage)
  File "ui.pyc", line 133, in message
  File "braille.pyc", line 2307, in message
  File "braille.pyc", line 2321, in _resetMessageTimer
  File "wx\core.pyc", line 3451, in __init__
  File "wx\core.pyc", line 3472, in Start
wx._core.wxAssertionError: C++ assertion "wxThread::IsMain()" failed at ..\..\src\common\timerimpl.cpp(57) in wxTimerImpl::Start(): timer can only be started from the main thread




Il 13/03/2023 13:52, Devin Prater ha scritto:
Looks like your sentence command isn't hooked up. Both of the commands ask the meaning of a word.
Devin Prater




On Mon, Mar 13, 2023 at 6:42 AM Nike <lcong5946@...> wrote:
Oh, thanks, I'll change to something else.

On Mon, Mar 13, 2023 at 8:21 PM Noelia Ruiz <nrm1977@...> wrote:
Welcome.
Seeing your default commands, I can point out that NVDA+shift+a is
used in desktop keyboards to read all with review cursor.
Cheers.

2023-03-13 12:16 GMT+01:00, Nike <lcong5946@...>:
> Hi, I created add-on to interact with chatGPT.
> For people who don't know chatGPT, it is very powerful and intelligent AI
> which can answer any questions (sometimes it's incorrect, so don't be too
> dependent on it.)
>
> Here is the repository [nvda-chatGPT](
> https://github.com/mo29cg/nvda-chatGPT (
> https://github.com/mo29cg/nvda-chatGP ) )
> Here is the direct download link [donwload](
> https://github.com/mo29cg/nvda-chatGPT/releases/latest/download/nvdaChatGPT.nvda-addon
> )
>
> You need chatGPT api key (you can get it for free) to use this add-on.
> It might take time to create an account, and get api key for some people,
> but I think it's worth it, because it's quite useful to have an assistant
> which can answer any questions.
>
> This is how to get the api key.
>
> 1. go to https://platform.openai.com/account/api-keys
> 2. login (make an account, if you don't have one)
> 3. press the button "Create new secret key‍"
> 4. go to nvda - preference - settings - askChatGPT, and put the api key.
>
> This is how to use it.
> First, select any words you wish to know the meaning of, or questions you
> wish to ask.
> Then use the either of below.
> • NVDA+shift+A Ask the meaning of selected word.
> • NVDA+shift+L Ask the question.
>
> I would appreciate any suggestions, corrections, questions.
> Feel free to it, thanks.
>
>
>
>
>
>








Ângelo Abrantes
 

Here, after completing the indicated tasks, the addon sends the message, but when pressing "nvda+shift+l", it always says that it is sending the message

Às 13:16 de 13-03-2023, Simone Dal Maso escreveu:
Hello,
unfortunately it seems not working with NVDA 2023.1.
I changed the manifest.ini so the addon start.
I put the secret key, but when I press nvda-shift-l for example, I obtain this from the log:

ERROR - stderr (14:14:44.895) - Thread-12 (13368):
Exception in thread Thread-12:
Traceback (most recent call last):
  File "threading.pyc", line 926, in _bootstrap_inner
  File "threading.pyc", line 870, in run
  File "D:\Users\MI09424\Desktop\xnvda\userConfig\addons\nvdaChatGPT\globalPlugins\nvdaChatGPT\__init__.py", line 110, in askChatGPT
    ui.message(functionStartMessage)
  File "ui.pyc", line 133, in message
  File "braille.pyc", line 2307, in message
  File "braille.pyc", line 2321, in _resetMessageTimer
  File "wx\core.pyc", line 3451, in __init__
  File "wx\core.pyc", line 3472, in Start
wx._core.wxAssertionError: C++ assertion "wxThread::IsMain()" failed at ..\..\src\common\timerimpl.cpp(57) in wxTimerImpl::Start(): timer can only be started from the main thread




Il 13/03/2023 13:52, Devin Prater ha scritto:
Looks like your sentence command isn't hooked up. Both of the commands ask the meaning of a word.
Devin Prater




On Mon, Mar 13, 2023 at 6:42 AM Nike <lcong5946@...> wrote:
Oh, thanks, I'll change to something else.

On Mon, Mar 13, 2023 at 8:21 PM Noelia Ruiz <nrm1977@...> wrote:
Welcome.
Seeing your default commands, I can point out that NVDA+shift+a is
used in desktop keyboards to read all with review cursor.
Cheers.

2023-03-13 12:16 GMT+01:00, Nike <lcong5946@...>:
> Hi, I created add-on to interact with chatGPT.
> For people who don't know chatGPT, it is very powerful and intelligent AI
> which can answer any questions (sometimes it's incorrect, so don't be too
> dependent on it.)
>
> Here is the repository [nvda-chatGPT](
> https://github.com/mo29cg/nvda-chatGPT (
> https://github.com/mo29cg/nvda-chatGP ) )
> Here is the direct download link [donwload](
> https://github.com/mo29cg/nvda-chatGPT/releases/latest/download/nvdaChatGPT.nvda-addon
> )
>
> You need chatGPT api key (you can get it for free) to use this add-on.
> It might take time to create an account, and get api key for some people,
> but I think it's worth it, because it's quite useful to have an assistant
> which can answer any questions.
>
> This is how to get the api key.
>
> 1. go to https://platform.openai.com/account/api-keys
> 2. login (make an account, if you don't have one)
> 3. press the button "Create new secret key‍"
> 4. go to nvda - preference - settings - askChatGPT, and put the api key.
>
> This is how to use it.
> First, select any words you wish to know the meaning of, or questions you
> wish to ask.
> Then use the either of below.
> • NVDA+shift+A Ask the meaning of selected word.
> • NVDA+shift+L Ask the question.
>
> I would appreciate any suggestions, corrections, questions.
> Feel free to it, thanks.
>
>
>
>
>
>






-- 
Cordiais Cumprimentos
Ângelo Abrantes, Equipa <Portuguesa do NVDA

Sem vírus.www.avast.com


Simone Dal Maso
 

same problem, it is not compatible with display braille.

Il 13/03/2023 15:05, Ângelo Abrantes ha scritto:

Here, after completing the indicated tasks, the addon sends the message, but when pressing "nvda+shift+l", it always says that it is sending the message

Às 13:16 de 13-03-2023, Simone Dal Maso escreveu:
Hello,
unfortunately it seems not working with NVDA 2023.1.
I changed the manifest.ini so the addon start.
I put the secret key, but when I press nvda-shift-l for example, I obtain this from the log:

ERROR - stderr (14:14:44.895) - Thread-12 (13368):
Exception in thread Thread-12:
Traceback (most recent call last):
  File "threading.pyc", line 926, in _bootstrap_inner
  File "threading.pyc", line 870, in run
  File "D:\Users\MI09424\Desktop\xnvda\userConfig\addons\nvdaChatGPT\globalPlugins\nvdaChatGPT\__init__.py", line 110, in askChatGPT
    ui.message(functionStartMessage)
  File "ui.pyc", line 133, in message
  File "braille.pyc", line 2307, in message
  File "braille.pyc", line 2321, in _resetMessageTimer
  File "wx\core.pyc", line 3451, in __init__
  File "wx\core.pyc", line 3472, in Start
wx._core.wxAssertionError: C++ assertion "wxThread::IsMain()" failed at ..\..\src\common\timerimpl.cpp(57) in wxTimerImpl::Start(): timer can only be started from the main thread




Il 13/03/2023 13:52, Devin Prater ha scritto:
Looks like your sentence command isn't hooked up. Both of the commands ask the meaning of a word.
Devin Prater




On Mon, Mar 13, 2023 at 6:42 AM Nike <lcong5946@...> wrote:
Oh, thanks, I'll change to something else.

On Mon, Mar 13, 2023 at 8:21 PM Noelia Ruiz <nrm1977@...> wrote:
Welcome.
Seeing your default commands, I can point out that NVDA+shift+a is
used in desktop keyboards to read all with review cursor.
Cheers.

2023-03-13 12:16 GMT+01:00, Nike <lcong5946@...>:
> Hi, I created add-on to interact with chatGPT.
> For people who don't know chatGPT, it is very powerful and intelligent AI
> which can answer any questions (sometimes it's incorrect, so don't be too
> dependent on it.)
>
> Here is the repository [nvda-chatGPT](
> https://github.com/mo29cg/nvda-chatGPT (
> https://github.com/mo29cg/nvda-chatGP ) )
> Here is the direct download link [donwload](
> https://github.com/mo29cg/nvda-chatGPT/releases/latest/download/nvdaChatGPT.nvda-addon
> )
>
> You need chatGPT api key (you can get it for free) to use this add-on.
> It might take time to create an account, and get api key for some people,
> but I think it's worth it, because it's quite useful to have an assistant
> which can answer any questions.
>
> This is how to get the api key.
>
> 1. go to https://platform.openai.com/account/api-keys
> 2. login (make an account, if you don't have one)
> 3. press the button "Create new secret key‍"
> 4. go to nvda - preference - settings - askChatGPT, and put the api key.
>
> This is how to use it.
> First, select any words you wish to know the meaning of, or questions you
> wish to ask.
> Then use the either of below.
> • NVDA+shift+A Ask the meaning of selected word.
> • NVDA+shift+L Ask the question.
>
> I would appreciate any suggestions, corrections, questions.
> Feel free to it, thanks.
>
>
>
>
>
>






-- 
Cordiais Cumprimentos
Ângelo Abrantes, Equipa <Portuguesa do NVDA

Sem vírus.www.avast.com



Rowen Cary
 

Hi, NVDA+Shift+l is the gesture for the NumberProcessing add-on. Although gesture conflicts before add-ons are inevitable. Also, will the add-on be able to ask questions in languages ​​other than English and Japanese?


Simone Dal Maso
 

Il 13/03/2023 16:09, Rowen Cary ha scritto:

Also, will the add-on be able to ask questions in languages ​​other than English and Japanese?


Yes, I am italian and I can write on my language, and ChatGpt answer in italian. This is really good.


Advogado Antonio Cezar Antunes Ribeiro
 

 Hello. Your add-on is great. However, I would like to have the possibility to change the commands directly in the NVDA command entry, because when I change the command for sending questions to NVDA:+Shift+W, for example, it doesn't work here. It would also be interesting to open a box to write the text when nothing is selected, because many times I have to open a notepad to write the command to ChatGPT, as when I want to translate something, which I do quite often... Thank you.



Antonio Cezar Antunes Ribeiro - Advogado - OAB/SP: 441.740.

Em 13/03/2023 08:42, Nike escreveu:

Oh, thanks, I'll change to something else.

On Mon, Mar 13, 2023 at 8:21 PM Noelia Ruiz <nrm1977@...> wrote:
Welcome.
Seeing your default commands, I can point out that NVDA+shift+a is
used in desktop keyboards to read all with review cursor.
Cheers.

2023-03-13 12:16 GMT+01:00, Nike <lcong5946@...>:
> Hi, I created add-on to interact with chatGPT.
> For people who don't know chatGPT, it is very powerful and intelligent AI
> which can answer any questions (sometimes it's incorrect, so don't be too
> dependent on it.)
>
> Here is the repository [nvda-chatGPT](
> https://github.com/mo29cg/nvda-chatGPT (
> https://github.com/mo29cg/nvda-chatGP ) )
> Here is the direct download link [donwload](
> https://github.com/mo29cg/nvda-chatGPT/releases/latest/download/nvdaChatGPT.nvda-addon
> )
>
> You need chatGPT api key (you can get it for free) to use this add-on.
> It might take time to create an account, and get api key for some people,
> but I think it's worth it, because it's quite useful to have an assistant
> which can answer any questions.
>
> This is how to get the api key.
>
> 1. go to https://platform.openai.com/account/api-keys
> 2. login (make an account, if you don't have one)
> 3. press the button "Create new secret key‍"
> 4. go to nvda - preference - settings - askChatGPT, and put the api key.
>
> This is how to use it.
> First, select any words you wish to know the meaning of, or questions you
> wish to ask.
> Then use the either of below.
> • NVDA+shift+A Ask the meaning of selected word.
> • NVDA+shift+L Ask the question.
>
> I would appreciate any suggestions, corrections, questions.
> Feel free to it, thanks.
>
>
>
>
>
>






Advogado Antonio Cezar Antunes Ribeiro
 

Here, I didn't have the problems pointed out by the other list colleagues. I only have the suggestions already made in the previous message. So much so that, after I included the Apkey, it works very well here for me. Reminding friends that the Apkey is hidden, only part of it being shown next to the date of its creation. The full Apkey can only be accessed when you click on a dialogue box at the end of the page... Thank you.



Antonio Cezar Antunes Ribeiro - Advogado - OAB/SP: 441.740.

Em 13/03/2023 12:38, Advogado Antonio Cezar Antunes Ribeiro via groups.io escreveu:

 Hello. Your add-on is great. However, I would like to have the possibility to change the commands directly in the NVDA command entry, because when I change the command for sending questions to NVDA:+Shift+W, for example, it doesn't work here. It would also be interesting to open a box to write the text when nothing is selected, because many times I have to open a notepad to write the command to ChatGPT, as when I want to translate something, which I do quite often... Thank you.



Antonio Cezar Antunes Ribeiro - Advogado - OAB/SP: 441.740.

Em 13/03/2023 08:42, Nike escreveu:
Oh, thanks, I'll change to something else.

On Mon, Mar 13, 2023 at 8:21 PM Noelia Ruiz <nrm1977@...> wrote:
Welcome.
Seeing your default commands, I can point out that NVDA+shift+a is
used in desktop keyboards to read all with review cursor.
Cheers.

2023-03-13 12:16 GMT+01:00, Nike <lcong5946@...>:
> Hi, I created add-on to interact with chatGPT.
> For people who don't know chatGPT, it is very powerful and intelligent AI
> which can answer any questions (sometimes it's incorrect, so don't be too
> dependent on it.)
>
> Here is the repository [nvda-chatGPT](
> https://github.com/mo29cg/nvda-chatGPT (
> https://github.com/mo29cg/nvda-chatGP ) )
> Here is the direct download link [donwload](
> https://github.com/mo29cg/nvda-chatGPT/releases/latest/download/nvdaChatGPT.nvda-addon
> )
>
> You need chatGPT api key (you can get it for free) to use this add-on.
> It might take time to create an account, and get api key for some people,
> but I think it's worth it, because it's quite useful to have an assistant
> which can answer any questions.
>
> This is how to get the api key.
>
> 1. go to https://platform.openai.com/account/api-keys
> 2. login (make an account, if you don't have one)
> 3. press the button "Create new secret key‍"
> 4. go to nvda - preference - settings - askChatGPT, and put the api key.
>
> This is how to use it.
> First, select any words you wish to know the meaning of, or questions you
> wish to ask.
> Then use the either of below.
> • NVDA+shift+A Ask the meaning of selected word.
> • NVDA+shift+L Ask the question.
>
> I would appreciate any suggestions, corrections, questions.
> Feel free to it, thanks.
>
>
>
>
>
>






Cyrille
 

Hello

Cool add-on, thanks for it.

Here are some improvements that I can see:

1. You'd better let the user re-define the gestures of the scripts in Input gesture dialog. For this, when defining the script script_askSentence, you just need to write in the decorator's arguments:
  gestures=["kb:nvda+shift+L"
This defines the default gesture but the user is still able to modify it in input gesture dialog.
Or was there another reason why you have defined the gestures this way?

2. You may want to make translatable the following sentence:
"What is the meaning of " + word + "? Respond in english"
and use a formatted string,
i.e.:
_(f"What is the meaning of {word}? Respond in english")
Then you can ask translators to translate your add-on. And translators will have to translate this request to ChatGPT. This may allow ChatGPT to answer in the language of NVDA interface if any translation exists, else in English. Then you can also develop explicit definition of the expected language of the answer and pick the correct request sentence in the existing translations.
This would allow to avoid being limited to English and Japanese or to have various translation requests hard-coded for many languages in the code.

Cheers,

Cyrille


Luke Davis
 
Edited

Cyrille via groups.io wrote:

  gestures=["kb:nvda+shift+L"
I think you mean: gesture="kb:nvda+shift+L"

I guess it already has a category defined, I have not looked at this add-on.

and use a formatted string,
i.e.:
_(f"What is the meaning of {word}? Respond in english")
I believe F-strings don't work with _(), and you need format() still. Unless a workaround has been found?

# Translators: A formatted question incorporating the user input
_("What is the meaning of {word}? Respond in English").format(word=word)

Luke


Cyrille
 

Uh, sorry. My previous message is full of mistakes! Thanks Luke to have pointed it.

1. Regarding gesture definition, Luke's correction still has a mistake. You need to write:
gestures=["kb:NVDA+shift+l"]  # i.e. gestures with a plural form and a list of strings
or
gesture="kb:NVDA+shift+l"  # i.e. gesture at singular form with a single gesture string

For now, there is no category so the scripts will appear in Misc category. You may want to define a specific one.

2. Regarding f-Strings, Luke is alright. They cannot be used in translation functions. The "# Translators" comment is also very useful and should indicate to translators that this sentence will be passed to ChatGPT to get the answer.

3. Also one additional issue:
The two descriptions are the same (probably copy/paste issue), so only one script appears in the input gesture dialog and thus can be remapped. Each script should have a description differing from the others instead.

4. Regarding the bug with braille:
Maybe ui.message cannot be called from another thread than main thread? If this is the case, you may call instead:
core.callLater(0, lambda: ui.message("sending the sentence to chatGPT"))
I do not know if this limitation is old or has appeared with NVDA 2023.1; I know that Leonard has done some braille rework for 2023.1 so I do not know if it is linked.
@Simone, @Ângelo, have you ahd the braille issue with NVDA 2023.1rc1, tweaking  the manifest? Or with 2022.4?

Cheers,

Cyrille


On Mon, Mar 13, 2023 at 06:58 PM, Luke Davis wrote:
Cyrille via groups.io wrote:

  gestures=["kb:nvda+shift+L"
I think you mean: gestures="kb:nvda+shift+L"

I guess it already has a category defined, I have not looked at this add-on.

and use a formatted string,
i.e.:
_(f"What is the meaning of {word}? Respond in english")
I believe F-strings don't work with _(), and you need format() still. Unless
a workaround has been found?

# Translators: A formatted question incorporating the user input
_("What is the meaning of {word}? Respond in English").format(word=word)

Luke


Rowen Cary
 

Great advice from Cyrille and Luke. I'm sure this add-on will be even better, looking forward to it.


Advogado Antonio Cezar Antunes Ribeiro
 

 I still ask the developer for an editable text field so that the question can be written when there is no text selected. There are many situations where I need to send commands to ChatGPT, because in the case of our artificial intelligences such as ChatGPT, the best answers are obtained when you learn to ask the best questions. So much so, that people/companies dedicated to preparing questions for these AI(s) are emerging in the market... Thank you.



Antonio Cezar Antunes Ribeiro - Advogado - OAB/SP: 441.740.

Em 13/03/2023 22:42, Rowen Cary escreveu:

Great advice from Cyrille and Luke. I'm sure this add-on will be even better, looking forward to it.


 

I would also like an editable text box to type in my question.
Moreover, I think a full conversation window where the user can see all the messages that the user sends and all the responses that Chat GPT generated would be nice. You should also make the text box multi-line would be nice so to allow for more complex queries to be entered into.
Additionally, the ability to save the conversation into a file (either text file or CSV) would be nice too.


Nike
 

Thanks for all the comments, they are very helpful, I love it.

I briefly made corrections/suggestions into issues.
https://github.com/mo29cg/nvda-chatGPT/issues

* Make it translatable
* Option of "opening editable text" when nothing is selected
* Can't configure key bindings in Input Gestures
Doesn't work if braille display is connected
*command conflict NVDA+shift+a

I'll look into it, one by one.


ASAMOAH EMMANUEL
 

I think that you should look at handling errors when no api key is inserted at preferences because, if there is no apikey, it still keeps telling you, asking ChatGPT.


On Tue, Mar 14, 2023 at 8:17 AM Nike <lcong5946@...> wrote:
Thanks for all the comments, they are very helpful, I love it.

I briefly made corrections/suggestions into issues.
https://github.com/mo29cg/nvda-chatGPT/issues

* Make it translatable
* Option of "opening editable text" when nothing is selected
* Can't configure key bindings in Input Gestures
Doesn't work if braille display is connected
*command conflict NVDA+shift+a

I'll look into it, one by one.