node-chatgpt-api
node-chatgpt-api copied to clipboard
feat(bing): enable the image generation function(BIC) for cli mode
- 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.
- 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'.
- 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.
- Since the 'creative' tone style is required for BIC, add an option to set the default tone style in settings.js.
- For server mode, fix the 'genImage' option which is set by client side(It can't be turn off once turn on at before).
- bump @timefox/bic-sydney.
Do you mind setting a few examples of these options in /demos/?
Do you mind setting a few examples of these options in /demos/?
A small example has been added to use-bing-client.js.