Skip to content

[BUG] env var ENABLE_VLLM is not natively a bool #261

Description

@slimfrkha

Describe the bug
env variables are string types and cant be typed as bool.

if os.getenv("ENABLE_VLLM", False):
    something

os.environ["ENABLE_VLLM"] needs to be casted first from str to bool before applying if

To Reproduce

export ENABLE_VLLM=False
if os.getenv("ENABLE_VLLM", False):
    print('hi')

will print hi whereas it shouldnt.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions