Closed lozy219 closed 4 weeks ago
Yes, good idea! Let's do it. I'll update the explainer soon.
(Reflected in https://github.com/DefinitelyTyped/DefinitelyTyped/pull/70688.)
Thanks for adding that into the explainer, but why does clone()
API needs a dedicated AIAssistantCreateOptions
while the prompt()
, promptStreaming()
, countPromptTokens()
share the AIAssistantPromptOptions
?
It is just future-proofing. There is no observable difference at the moment (when they have the same contents). In theory an implementation could consolidate all dictionaries which contain a single signal
member into one dictionary, no matter what API they are from.
Do we need an abort signal for the
clone()
API? We have one for the assistant creation API and the clone() should have a similar flow.