canSendRequest
Checks if a request can be made to a language model.
Note that calling this function will not trigger a consent UI but just checks for a persisted state.
Return
true
if a request can be made, false
if not, undefined
if the language model does not exist or consent hasn't been asked for.
Parameters
chat
A language model chat object.