I have no problem using generateText through Azure, but using streamText with the same parameters has been consistently reporting errors. Aren't the parameters of these two methods supposed to be the same?
const textStream = await streamText(
new OpenAIChatModel({
api: new AzureOpenAIApiConfiguration({
apiKey: process.env.AZURE_OPENAI_API_KEY,
resourceName: process.env.AZURE_OPENAI_API_INSTANCE_NAME,
deploymentId: process.env.AZURE_OPENAI_API_DEPLOYMENT_NAME,
apiVersion: process.env.AZURE_OPENAI_API_VERSION,
}),
model: "gpt-3.5-turbo",
}), [
OpenAIChatMessage.system("You are a story writer. Write a story about:"),
OpenAIChatMessage.user("A robot learning to love"),
]);
I have no problem using generateText through Azure, but using streamText with the same parameters has been consistently reporting errors. Aren't the parameters of these two methods supposed to be the same?