Replies: 9 comments 15 replies
|
As a developer, I think there is no rational for not adding this option with maybe the exception that Open-AI has some sort of exclusivity contract with Nabucasa or that Nabucasa is planing to release this feature under their paid subscription at a later date. I looked over all of the available PRs and the reasoning, as somebody else put it, is just "NO"; Keep in mind that most, if not all, open source software that has integrated LLM's has the ability to set a custom base URL for Open-AI as this is critical for customizing the LLM instance, this is definitely not standard. |
|
I’d like to revisit this topic from a slightly different angle, building on the previous discussion. One important point that hasn’t been emphasized enough is that a configurable From Home Assistant’s perspective, this approach has some clear advantages:
This aligns well with how Home Assistant has historically approached similar problems: solving the majority of use cases in a robust and maintainable way, without turning core integrations into compatibility layers for an open-ended set of providers. It also addresses the original use cases raised in this thread (proxy APIs, access to multiple models, experimentation) while keeping clear ownership boundaries inside the project. I’m not suggesting this is the only possible solution, but it seems like a pragmatic alternative that fits the project’s long-term maintenance philosophy, especially given that “OpenAI-compatible” is not a formal protocol with versioning or guaranteed semantics. |
|
I don't understand how this is substantially different to using Ollama or OpenRouter tooling; beyond maybe improving the discoverability or explaination of what these are. IE: Each allows multiple models to be selected, provides a consistent API (not just to home assistant) and has corresponding integrations with Home assistant? |
|
Having the simple option to use base URL solves most issues while having some kind of standard. That would allow options such as litellm and similar. Having ai tasks tied to only a tech gigantic seems to be tge exact opposite of what the rest of home assistant is created for. |
|
How is this even a conversation? Setting a base URL for an endpoint is an absolute basic feature in an open source tool. There simply is no rationale that makes since for avoiding it since even the OpenAI API client supports it. |
|
I am confused. I have no idea how the home assistant team is unable to implement this. Other self hosted projects implement that before even thinking about other stuff, but hey, there is an openrouter integration. There is still no simple and easy way to connect my local litellm proxy with my local home assistant? WTF guys? |
|
how about integrating https://www.openresponses.org ? |
|
While I am now using Extended OpenAI Conversstion so I can change the base URL, for anyone who wishes to change it in core, for instance by using Example here: https://github.com/openai/openai-python?tab=readme-ov-file#configuring-the-http-client |
|
In order to allow more flexibility in using any open compatible API endpoint for ai task and conversation I created this: I have been testing it for a while and so far so good. but my development knowledge of HA is at a basic level. If anybody out there is willing to join the efforts, I want this package to be provider agnostic, using the OpenAI standard, and leaving for the rest the choice to the user what API and models are used! :-) |

Uh oh!
There was an error while loading. Please reload this page.
Describe the feature
Currently the list of core AI components available for conversations and AI Task support are very limited and tied to dedicated services. This is not in the philosophy of HA, where there should be choice and options to run whichever service you want.
I would propose creating a 'generic' AI component that works both as conversational agent and brings AI Task support to HA.
As this would be the generic variant, you would be able to configure any OpenAI compatible API endpoint.
This could, maybe in time, even replace all separate components using OpenAI API structure.
Use cases
I have 3 profound use cases for this
1 - Usage of proxy API's, there are both public and private services that offer foundation model access through a proxy API.
2 - Usage of agents, with a generic component, you could use openAI compatible 'custom GPT' which are build and maintained outside of HA. Agents like this could have access to an extend system prompt and source library to perform very specific request with AI Task (E.g. energy management, climate control, ...)
3 - local experimentation, to connect custom stacks/agents for test, or even more high level applications such as LM studio
Anything else?
No response
All reactions