From fe1fbae961e622e4c90c403a3f213bf6b22e1537 Mon Sep 17 00:00:00 2001 From: Tuchuanhuhuhu Date: Sat, 14 Sep 2024 11:32:26 +0800 Subject: [PATCH] fix #1160 --- modules/models/OpenAIVision.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/models/OpenAIVision.py b/modules/models/OpenAIVision.py index 40fa2be7..3bdb7b64 100644 --- a/modules/models/OpenAIVision.py +++ b/modules/models/OpenAIVision.py @@ -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 = {