node-chatgpt-api icon indicating copy to clipboard operation
node-chatgpt-api copied to clipboard

feat(bing): enable the image generation function(BIC) for cli mode

Open timefox opened this issue 2 years ago • 2 comments

  1. Enable the image generation function(BIC) for cli mode. Now it can return a list of image urls in plain text or markdown syntax format. And it also works in server mode with an option.
  2. The 'returnData' of BingAIClient's sendMessage will contain a 'bic' object if bic is used in this message. This object is under 'details'. It contains prompt used and the type of bic result. Further more, if a url list is retruned, it can be obtained through an array object called 'images'.
  3. This the image generation function can now be switched on and off separately in both server and cli modes. And you can use 3 different types of generation, see settings.example.js for details.
  4. Since the 'creative' tone style is required for BIC, add an option to set the default tone style in settings.js.
  5. For server mode, fix the 'genImage' option which is set by client side(It can't be turn off once turn on at before).
  6. bump @timefox/bic-sydney.

timefox avatar Jun 02 '23 19:06 timefox

Do you mind setting a few examples of these options in /demos/?

danny-avila avatar Jun 02 '23 20:06 danny-avila

Do you mind setting a few examples of these options in /demos/?

A small example has been added to use-bing-client.js.

timefox avatar Jun 03 '23 09:06 timefox