cartertemm / AI-content-describer

NVDA add-on that provides descriptions for controls and images, powered by GPT4
GNU General Public License v2.0
48 stars 24 forks source link

API key setting doesn't take affect until restart #2

Closed cartertemm closed 12 months ago

cartertemm commented 12 months ago

To reproduce:

This happens because the GPT -4 vision preview describer does not refresh the API key following instantiation. We need to hold the name of the service in the config and get config[name]["api_key"] with every call to service.process.