Skip to content

Commit 7173e4d

Browse files
author
self
committed
Fixed bug where GPT3 object was not processing requests to GPT4
1 parent 5f1e40a commit 7173e4d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

chatbot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -958,7 +958,7 @@ def get_text_tokens(self, prompt: str, max_token_ct: int = 200) -> tuple:
958958
Send a request to gpt, get (response: str, token_count: int)
959959
'''
960960

961-
if not self.gpt_model == 'gpt-3.5-turbo':
961+
if not self.gpt_model == 'gpt-3.5-turbo' and not self.gpt_model == 'gpt-4':
962962
response = openai.Completion.create(
963963
model=self.gpt_model,
964964
prompt=self.conversation,

0 commit comments

Comments
 (0)