Skip to content

Commit

Permalink
chore: fix typo in docs and add request header for function calls (#807)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-bot authored Nov 13, 2023
1 parent 7c3b48f commit cbef703
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
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

0 comments on commit cbef703

Please sign in to comment.