Makes backend enum pretty printable

This commit is contained in:
Nielson Janné 2025-03-12 14:45:25 +01:00
parent 562c9a2ae7
commit 32c8774a0a

View File

@ -19,6 +19,10 @@ class BackendType(Enum):
aws = "aws"
local = "local"
# make the enum pretty printable for argparse
def __str__(self):
return self.value
def get_chat_model(backend_type: BackendType) -> BaseChatModel:
if backend_type == BackendType.azure: