%rebase('layout', title='Ask AI')
%if backend != 'openai':

Backend: local Ollama. If nothing answers, check OLLAMA_HOST/OLLAMA_MODEL or set OPENAI_API_KEY.

%end
%for m in messages: %if m['role'] == 'user':
{{m['html']}}
%else:
{{!m['html']}}
%end %end %if not messages:

Ask something about your clients or tasks.

%end
%if pending:

The assistant wants to:

%else:
%end