Open Router as AI API provider
# 👀feature-requests
r
I use Open Router with Super-AGI and it is simply marvelous. I means with one account you could access virtually any LLM, you even have access to some of them for free
f
Hey there, Could you explain a bit more about which feature you would like to be added?
r
As I'm not a developer, I'll do my best. From what I understood Open Router provide an API compatible with OpenAI API, so I beleive that by duplicating the OpenAI feature and changing the API endpoint, it would be possible to use an Open Router account which gives us access to several LLMs and Providers https://openrouter.ai/models https://github.com/OpenRouterTeam/openrouter-examples
f
Ah okay. You can already do that by using the execute code card. https://botpress.com/docs/cloud/getting-started/tips-and-tricks/#using-external-apis-in-botpress
If you are having issues with making a request to an API ask ChatGPT to write the code for you. Prompt it to use the Axios library. Axios has already been required so no need to do that. You can look at how to structure the requests to OpenAI in this template https://botpress.com/templates/openai-api-template
r
I might use AI but definitely not ChatGPT 😉 Thanks for the feedback
f
Why not? You are very welcome!
r
Too expensive for what it worth, limited to a WebUI, unlike API, and for privacy concern too
f
Fair enough. I just replaced it with Netflix. You can use the playground where you would just pay for your usage. You can also run LLaMa 3 8B locally since privacy is a concern. ^^^ in case you need it of course.
r
Don't worry, this is why I mentioned the technology and not a brand 😉 And it's also why I like OpenRouter because it allow different LLM, while local options are not always possible when you travel nor on the go.
f
Its cheap, but doesn't it also have some privacy risks?
5 Views