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 23 forks source link

suggestion: add support for openrouter.ai API #30

Open accessyapps opened 4 months ago

accessyapps commented 4 months ago

Hi. Openrouter.ai is a website that allowes people to access a lot of different AI models using one API, which is similar to the openai api. You can use models like gpt4, gpt4o, claude3, geminni flash, and a lot more. It's practical because

  1. openrouter is fast at adding new models so you don't need to update the adon all the time
  2. the API is almost the same.
  3. As far as i am aware the claude3 api and also the google geminni api is not available in europe yet, how ever openrouter is. I am living in germany so it would be great to have access to these models using openrouter.

Would be awesome to integrate it, it's basically openai api syntax. I can also make a pullrequest and try to add it if it's apreciated.

cartertemm commented 4 months ago

Hey there,

I'm really glad to hear that you're enjoying the addon!

I like this idea a lot. Feel free to start working on it in a fork, but don't hesitate to reach out to me if you'd like some help along the way. Otherwise, I'll work on it when I have time.

For reference, here's a little guidance on how I would implement it... I've yet to document creating new models.

The process for incorporating the config dialogs should be much the same.

Hopefully this is enough substance to get you started. Thanks again for offering to lend a hand on the project!

antonshusharin commented 3 months ago

@accessyapps are you still planning to work on a pr for this feature? I would also like to see it in the addon and am willing to provide the implementation if necessary.