Represents extension specific information about the access to language models.
Fields
canSendRequest(chat:LanguageModelChat):Null<Bool>
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.
Parameters:
chat | A language model chat object. |
|---|
Returns:
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.