This function is a wrapper over the AI SDK's streamText.
The prompt file sets model, messages, temperature, maxTokens, and providerOptions.
All other AI SDK streamText options are accepted via StreamTextAiSdkOptions, except
onFinish, which Output wraps to add optional cost data.
Use an LLM model to stream text generation.
This function is a wrapper over the AI SDK's
streamText. The prompt file setsmodel,messages,temperature,maxTokens, andproviderOptions. All other AI SDKstreamTextoptions are accepted via StreamTextAiSdkOptions, exceptonFinish, which Output wraps to add optional cost data.