v0.98.0
Changed
-
breaking change:
responseType
option was changed intofullResponse
option and now uses a boolean value to make discovery easy. The response values from the full response have been renamed for clarity. For base64 image generation, you can use theimageBase64
value from the full response:const { imageBase64 } = await generateImage(model, prompt, { fullResponse: true, });
Improved
- Better docs for the OpenAI chat settings. Thanks @bearjaws for the contribution!
Fixed
- Streaming OpenAI chat text generation when setting
n:2
or higher now returns only the stream from the first choice.