Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

release: 1.3.0 #808

Merged
merged 10 commits into from
Nov 15, 2023
Prev Previous commit
Next Next commit
chore: fix typo in docs and add request header for function calls (#807)
  • Loading branch information
stainless-bot authored Nov 13, 2023
commit cbef7030c7b21a0c766fe83c62657cea1cd8d31c
4 changes: 2 additions & 2 deletions src/openai/cli/_errors.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

import pydantic

from ._utils import Colours, organization_info
from ._utils import Colors, organization_info
from .._exceptions import APIError, OpenAIError


Expand All @@ -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))
2 changes: 1 addition & 1 deletion src/openai/cli/_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from .._models import BaseModel


class Colours:
class Colors:
HEADER = "\033[95m"
OKBLUE = "\033[94m"
OKGREEN = "\033[92m"
Expand Down