Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

timefox
Copy link
Contributor

@timefox timefox commented Jun 2, 2023

  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.

@danny-avila
Copy link
Contributor

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

@timefox
Copy link
Contributor Author

timefox commented Jun 3, 2023

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

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants