Skip to content

Commit

Permalink
fix #1160
Browse files Browse the repository at this point in the history
  • Loading branch information
GaiZhenbiao committed Sep 14, 2024
1 parent de260eb commit fe1fbae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/models/OpenAIVision.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ def _get_response(self, stream=False):
"Authorization": f"Bearer {openai_api_key}",
}

if system_prompt is not None:
if system_prompt is not None and "o1" not in self.model_name:
history = [construct_system(system_prompt), *history]

payload = {
Expand Down

0 comments on commit fe1fbae

Please sign in to comment.