Skip to content

Commit f98fdd2

Browse files
authored
Updated command
1 parent dd8ccfe commit f98fdd2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Diff for: plugins/chatgpt.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
"""
44
**Get Answers from Chat GPT (Open AI)**
55
6-
> `{i}gpt` (-i = for image) (query)
6+
> `{i}chatgpt` (-i = for image) (query)
77
88
**• Examples: **
9-
> `{i}gpt How to fetch a url in javascript`
10-
> `{i}gpt -i Cute Panda eating bamboo`
9+
> `{i}chatgpt How to fetch a url in javascript`
10+
> `{i}chatgpt -i Cute Panda eating bamboo`
1111
1212
• First setup OpenAI Api key by using `.setdb OPENAI_API your_key` to use this plugin
1313
"""
@@ -41,7 +41,7 @@ def get_gpt_answer(gen_image, question, api_key):
4141
return x.choices[0].message.content.lstrip("\n")
4242

4343

44-
@ultroid_cmd(pattern="(chat)?gpt( (.*)|$)")
44+
@ultroid_cmd(pattern="(chat)?chatgpt( (.*)|$)")
4545
async def openai_chat_gpt(e):
4646
api_key = udB.get_key("OPENAI_API")
4747
gen_image = False

0 commit comments

Comments
 (0)