mirror of
https://github.com/aljazceru/chatgpt-telegram-bot.git
synced 2025-12-23 23:55:05 +01:00
image type default value
This commit is contained in:
@@ -37,7 +37,7 @@ class ImageSearchPlugin(Plugin):
|
|||||||
kwargs['query'],
|
kwargs['query'],
|
||||||
region="wt-wt",
|
region="wt-wt",
|
||||||
safesearch='off',
|
safesearch='off',
|
||||||
type_image=kwargs['type'],
|
type_image=kwargs.get('type', 'photo'),
|
||||||
)
|
)
|
||||||
results = list(islice(ddgs_images_gen, 1))
|
results = list(islice(ddgs_images_gen, 1))
|
||||||
return {"result": results[0]["image"]}
|
return {"result": results[0]["image"]}
|
||||||
|
|||||||
Reference in New Issue
Block a user