aaclause / nvda-OpenAI

An NVDA Add-on for Integration with OpenAI, MistralAI, and OpenRouter APIs
GNU General Public License v2.0
25 stars 9 forks source link

Error in image description with gpt-4-vision-preview module #24

Closed MuhammadGagah closed 6 months ago

MuhammadGagah commented 7 months ago

Hi, I have gpt-4-vision API access, but error when using this add-on, here's what I got from the NVDA logs: ERROR - unhandled exception (14:26:17.842) - MainThread (7056): Traceback (most recent call last): File "C:\Users\muham\AppData\Roaming\nvda\addons\OpenAI\globalPlugins\openai\maindialog.py", line 732, in OnResult historyBlock.temperature = int(self.conf["temperature"]) / 100 File "config__init.pyc", line 1123, in getitem__ KeyError: 'temperature'

aaclause commented 6 months ago

Hello, Thanks for your report. Could you please try with this build? https://github.com/aaclause/nvda-OpenAI/releases/download/0.6b/OpenAI-23.12.06-a396305.nvda-addon Is it better?

MuhammadGagah commented 6 months ago

Well, this doesn't show any more errors, and is functioning as it should.

MuhammadGagah commented 6 months ago

mmm wait, when this option is turned off it still shows the same Traceback as in the first comment.

Enable advanced settings (including temperature and probability mass) check box not checked Alt+a

Can this problem be fixed?

aaclause commented 6 months ago

Hmmm, it seems that I uploaded the wrong file... Try this instead https://github.com/aaclause/nvda-OpenAI/releases/download/0.6b/OpenAI-23.12.07-00ab062.nvda-addon