Skip to content

Commit

Permalink
Fixed bug where GPT3 object was not processing requests to GPT4
Browse files Browse the repository at this point in the history
  • Loading branch information
self committed Mar 18, 2023
1 parent 5f1e40a commit 7173e4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chatbot.py
Original file line number Diff line number Diff line change
Expand Up @@ -958,7 +958,7 @@ def get_text_tokens(self, prompt: str, max_token_ct: int = 200) -> tuple:
Send a request to gpt, get (response: str, token_count: int)
'''

if not self.gpt_model == 'gpt-3.5-turbo':
if not self.gpt_model == 'gpt-3.5-turbo' and not self.gpt_model == 'gpt-4':
response = openai.Completion.create(
model=self.gpt_model,
prompt=self.conversation,
Expand Down

0 comments on commit 7173e4d

Please sign in to comment.