MCPcopy Create free account
hub / github.com/Agora-Lab-AI/Bing-Chat-API / create_image

Method create_image

src/bing_chat/BingUtils.py:172–177  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

170 Cookie.request_count[name] += 1
171
172 def create_image(self) -> None:
173 image_generator = ImageGen(Cookie.image_token)
174 image_generator.save_images(
175 image_generator.get_images(self.prompt),
176 output_dir=self.__class__.image_dir_path,
177 )
178
179 async def send_to_bing(self, echo: bool = True, echo_prompt: bool = False) -> str:
180 """Creat, submit, then close a Chatbot instance. Return the response"""

Callers 1

__init__Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected