BingImageCreator icon indicating copy to clipboard operation
BingImageCreator copied to clipboard

better results with "https://cn.bing.com"

Open manatlan opened this issue 1 year ago • 14 comments

In some cases, BIC doesn't work (http connexion errors). (in threads of gunicorn/h11 workers) I dive into the code, and reach to fix it ... just by changing the global var "BING_URL" from "https://www.bing.com" to "https://cn.bing.com" ... (in that cases, when using the original one, the first POST couldn't return the id, and breaks the following .... with the 'cn' version : it worked ootb) ... perhaps It could help someone.

BTW, you should concentrate your effort on the async one .... and make the sync one based on using the async one. (currently you have the 2 methods to maintain, when api/http changes)

BTW2: relations between edgegpt & bingimagecreator are confusing. For my needs, I've made a class, which use both, and expose functions from both in one instance. It's the way to go. And since, "creative mode" can return images too, it has a lot of sense ! Because it could replace the BIC apis. Because in chat mode, it's a lot easier to make multiple requests to make images, with context keeped. (the are no context in BIC)

manatlan avatar May 23 '23 06:05 manatlan