import { streamText } from '@xsai/stream-text'import { env } from 'node:process'const { textStream } = awaitstreamText({apiKey:env.OPENAI_API_KEY!,baseURL: 'https://api.openai.com/v1/',messages: [ {content: 'You are a helpful assistant.',role: 'system', }, {content: 'This is a test, so please answer' + '\'The quick brown fox jumps over the lazy dog.\'' + 'and nothing else.',role: 'user', }, ],model: 'gpt-4o',})consttext: string[] = []for await (consttextPart oftextStream) {text.push(textPart)}// "The quick brown fox jumps over the lazy dog."console.log(text)