🎨 Format code

This commit is contained in:
2024-07-10 20:55:21 +02:00
parent de3c5d5a02
commit 034deca568

View File

@@ -9,7 +9,7 @@ from .BaseLLMEngine import BaseLLMEngine
OPENAI_POSSIBLE_MODELS = [ # Theese shall be the openai models supporting force_json OPENAI_POSSIBLE_MODELS = [ # Theese shall be the openai models supporting force_json
"gpt-3.5-turbo-0125", "gpt-3.5-turbo-0125",
"gpt-4-turbo", "gpt-4-turbo",
"gpt-4o" "gpt-4o",
] ]
@@ -109,4 +109,8 @@ class OpenaiLLMEngine(BaseLLMEngine):
@property @property
def supports_vision(self) -> bool: def supports_vision(self) -> bool:
return True if self.model in ["gpt-4-turbo-preview", "gpt-4-turbo", "gpt-4o"] else False return (
True
if self.model in ["gpt-4-turbo-preview", "gpt-4-turbo", "gpt-4o"]
else False
)