Skip to content

Commit

Permalink
fix #1071
Browse files Browse the repository at this point in the history
  • Loading branch information
GaiZhenbiao committed Mar 9, 2024
1 parent 0bbf210 commit 4a8fb8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/models/OpenAIVision.py
Expand Up @@ -177,7 +177,7 @@ def _get_response(self, stream=False):
"max_tokens": 4096
}

if self.stop_sequence is not None:
if self.stop_sequence:
payload["stop"] = self.stop_sequence
if self.logit_bias is not None:
payload["logit_bias"] = self.encoded_logit_bias()
Expand Down

0 comments on commit 4a8fb8d

Please sign in to comment.