Hi,
I’m using Assist in Home Assistant with the gpt-4o-mini model and the web search option enabled. I have customized my prompt to include instructions like:
“Do not include any source links, URLs, or website names in your response, even if you used them. Focus only on delivering the information to the user.”
Despite this, the model still appends a source URL at the end of the answer whenever it uses web search. This breaks immersion and goes against the conversational tone I’m trying to maintain.
What I want:
I’d like to keep using the web search functionality (since it’s very helpful), but I do not want any links or source references included in the final response.
What I tried:
• Prompting the model explicitly not to include sources (didn’t help)
• Verified that the links are added even though the prompt forbids it.
Question:
Is there a way to prevent Assist from appending source URLs to LLM responses?
Can I intercept or strip this part in the current architecture — or do I need to implement a custom proxy/middleware for full control?
Thanks in advance!