Files
brave-core/app
Jocelyn Liu bba0efea11 [AI Chat] [BYOM] Add tool support for custom models in normal profiles (#34456)
* [AI Chat] [BYOM] Add supports_tools toggle to custom model settings UI

Expose the supports_tools flag in the custom model configuration UI
and persist it to prefs, allowing users to enable tool support
(e.g., web search) for custom models that support function calling.

- Add kCustomModelSupportsTools pref key and persist in GetModelDict/GetCustomModels
- Add supportsTools property, handler, and toggle in model_config_ui
- Add localized strings for the tool support toggle and tooltip

* [AI Chat] [BYOM] Restrict BYOM tool support to normal profiles

Add array<ConversationCapability> supported_capabilities model property
to filter which models are available for different conversation modes
(chat, content agent, etc.). Automatic (depends on tool support flag),
Claude Haiku and Sonnet have {CHAT, CONTENT_AGENT}, all other models
(including BYOM) have {CHAT} only.
2026-03-06 02:13:24 +00:00
..