fix: set timeout not work in image generation

This commit is contained in:
hibobmaster 2023-12-28 20:56:28 +08:00
parent 553a2a59f6
commit 975ff16998
Signed by: bobmaster
SSH key fingerprint: SHA256:5ZYgd8fg+PcNZNy4SzcSKu5JtqZyBF8kUhY7/k2viDk

View file

@ -1361,7 +1361,7 @@ class Bot:
self.image_generation_endpoint, self.image_generation_endpoint,
prompt, prompt,
self.image_generation_backend, self.image_generation_backend,
timeount=self.timeout, timeout=self.timeout,
api_key=self.openai_api_key, api_key=self.openai_api_key,
output_path=self.base_path / "images", output_path=self.base_path / "images",
n=1, n=1,