Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion chatbot/celery_tasks/title_tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,13 @@ def generate_session_title(session_id, language='en'):
tool_choice = 'auto'

system_msg = {'role': 'system', 'content': company_bot.context}
custom_model = (company_bot.other_params or {}).get('custom_model')
effective_model = custom_model.strip() if isinstance(custom_model, str) and custom_model.strip() else company_bot.llm_model

response = call_llm_gateway(
messages=[system_msg] + list(messages),
provider=company_bot.provider,
model=company_bot.llm_model,
model=effective_model,
params=build_gateway_params(company_bot),
tools=tools or None,
tool_choice=tool_choice,
Expand Down