Skip to content

v0.98.0

Compare
Choose a tag to compare
@lgrammel lgrammel released this 16 Dec 11:08

Changed

  • breaking change: responseType option was changed into fullResponse 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 the imageBase64 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.