Jocelyn Liu e940655d44 [AI Chat] Fix Mojo deserialization error when saving custom Leo models (#34404)
The cr146 commit (a31fb1f6bc) updated the reading side of
endpoint from .endpoint.url to .endpoint to match the new
url.mojom.Url -> string typemap, but on the writing side it
changed `endpoint: mojomUrl` to `endpoint: mojomUrl.toString()`
instead of removing the { url: '' } wrapper object. This
caused toString() to produce "[object Object]" instead of
the actual URL string, breaking Mojo deserialization when
adding or editing custom models in Leo settings.

Fix by removing the mojomUrl wrapper and passing
this.endpointUrl directly, consistent with how the reading
side already works.
2026-03-04 00:11:12 +00:00
2026-02-26 14:14:53 +00:00
2026-03-02 17:18:22 +00:00
2026-03-03 14:24:22 +00:00
2026-03-04 00:03:09 +00:00
2026-03-04 00:03:09 +00:00
2026-03-04 00:03:09 +00:00

Brave Core

Brave Core is a set of changes, APIs, and scripts used for customizing Chromium to make the Brave browser. Please also check https://github.com/brave/brave-browser

Follow @brave on Twitter for important announcements.

Resources

Community

You can ask questions and interact with the community in the following locations:

S
Description
No description provided
Readme MPL-2.0
3.8 GiB
Languages
C++ 36.9%
HTML 31.6%
Swift 9.4%
TypeScript 9%
Java 4.8%
Other 8.1%