mirror of https://github.com/knrd1/chatgpt.git
bug fix
This commit is contained in:
parent
a8b7aa8cb1
commit
edad4612b0
|
@ -94,7 +94,7 @@ while True:
|
|||
elif command == "PRIVMSG" and chunk[2].startswith("#") and chunk[3] == ":" + nickname + ":":
|
||||
channel = chunk[2].strip()
|
||||
question = data.split(nickname + ":")[1].strip()
|
||||
if model in ["gpt-4", "gpt-4-0613,", "gpt-4-32k,", "gpt-4-32k-0613,", "gpt-3.5-turbo,", "gpt-3.5-turbo-0613", "gpt-3.5-turbo-16k", "gpt-3.5-turbo-16k-0613"]:
|
||||
if model in ["gpt-4", "gpt-4-0613", "gpt-4-32k", "gpt-4-32k-0613", "gpt-3.5-turbo", "gpt-3.5-turbo-0613", "gpt-3.5-turbo-16k", "gpt-3.5-turbo-16k-0613"]:
|
||||
try:
|
||||
response = openai.ChatCompletion.create(
|
||||
model=model,
|
||||
|
|
Loading…
Reference in New Issue