You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Brave presently does only a superficial check against the format of the response when determining if it is valid or not. As a result, if a response contains a mostly-valid structure, but doesn't contain a "content" key on the first message, Brave will fail to handle this properly.
Steps to reproduce
Configure a server to respond with the following:
{"choices":[{"message":{"not_content":"value"}}]}
Actual result
The browser process will crash due to the absence of a "content" key.
Expected result
Brave should handle this more gracefully, and inform the user (at the very least) that the response format was invalid or otherwise unexpected.
Description
Brave presently does only a superficial check against the format of the response when determining if it is valid or not. As a result, if a response contains a mostly-valid structure, but doesn't contain a "content" key on the first message, Brave will fail to handle this properly.
Steps to reproduce
Configure a server to respond with the following:
Actual result
The browser process will crash due to the absence of a "content" key.
Expected result
Brave should handle this more gracefully, and inform the user (at the very least) that the response format was invalid or otherwise unexpected.
Reproduces how often
Easily reproduced
Brave version (brave://version info)
1.74.50 Chromium: 132.0.6834.111 (Official Build) (64-bit)
Channel information
Reproducibility
Miscellaneous information
No response
The text was updated successfully, but these errors were encountered: