diff --git a/src/openai/cli/_errors.py b/src/openai/cli/_errors.py index ac2a3780d0..2bf06070d6 100644 --- a/src/openai/cli/_errors.py +++ b/src/openai/cli/_errors.py @@ -4,7 +4,7 @@ import pydantic -from ._utils import Colours, organization_info +from ._utils import Colors, organization_info from .._exceptions import APIError, OpenAIError @@ -20,4 +20,4 @@ def display_error(err: CLIError | APIError | pydantic.ValidationError) -> None: if isinstance(err, SilentCLIError): return - sys.stderr.write("{}{}Error:{} {}\n".format(organization_info(), Colours.FAIL, Colours.ENDC, err)) + sys.stderr.write("{}{}Error:{} {}\n".format(organization_info(), Colors.FAIL, Colors.ENDC, err)) diff --git a/src/openai/cli/_utils.py b/src/openai/cli/_utils.py index 027ab08de3..673eed613c 100644 --- a/src/openai/cli/_utils.py +++ b/src/openai/cli/_utils.py @@ -9,7 +9,7 @@ from .._models import BaseModel -class Colours: +class Colors: HEADER = "\033[95m" OKBLUE = "\033[94m" OKGREEN = "\033[92m"