WTH there is not a conversation integration that let you use any OpenAI-compatible API

Hi,

as more providers of LLM are becoming available and use an OpenAI-compatible API it would be great to have a conversation integration that let you use them.

It should be something as simple as letting the user configure the OpenAI-compatible endpoint and would enable home assistant users to leverage different cloud (e.g. openrouter.ai) and local LLM models.

This could open a larger number of models and be more cost effective as cloud providers often have cheaper LLM options than the mainstream OpenAI and Anthropic.

Thank You!

Don’t forget to vote for your own…

1 Like

I was kind of surprised that this didn’t exist when I saw a lot of requests for one. I’m working on creating my own conversation integration (that one’s here, but it’s pretty specific to some use cases I have and not really stable enough for others yet) and wanted to start with just an openai-compatible version of the built in agent, so I went ahead and froze that as a repo here, if anyone’s interested.

1 Like

Yeah, being able to integrate an LLM like ChatGPT or Claude in to my Hass, and be able to ask it for suggestions, improvements, automations and so on would be truly ground breaking!

Thank you very much! Your openai-compatible-conversation works like a charm, but it’s a big bummer having to keep it maintained.

This point frustrates me a lot. I pay for GitHub Copilot, which allows to be used as an OpenAI SDK (here), but I simply cannot leverage it in Home Assistant without this custom component because… because of what? That’s what frustrates me the most. There isn’t even a good reason for not baking this feature by default.

Anyway, openai-compatible-conversation works great with GitHub Copilot models.

2 Likes

Yep. It’s literally the same thing with an Azure pass through.

Same with any based on Openwebui.

The inability to change the endpoint in the default integration is frankly, bonkers.

1 Like

There is this one from November 2023: [Custom Component] extended_openai_conversation: Let's control entities via ChatGPT

To compare and for reference, the Ollama integration does something similar but for those that use same or similar API as Ollama:

1 Like