We should have the right type of Output inferable so we can do e.g.
const { text } = await windowAI.getCompletion({ prompt: "What is the last digit of " })
without an error on the destructuring of the output
We should have it always return type Output[]. This will be a breaking change but makes it more consistent with other libs like OpenAI and easier to predict types for diff kinds input configs
We should have the right type of
Output
inferable so we can do e.g.const { text } = await windowAI.getCompletion({ prompt: "What is the last digit of " })
without an error on the destructuring of the outputWe should have it always return type
Output[]
. This will be a breaking change but makes it more consistent with other libs like OpenAI and easier to predict types for diff kinds input configs