Skip to content

Commit cbef703

Browse files
chore: fix typo in docs and add request header for function calls (#807)
1 parent 7c3b48f commit cbef703

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/openai/cli/_errors.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
import pydantic
66

7-
from ._utils import Colours, organization_info
7+
from ._utils import Colors, organization_info
88
from .._exceptions import APIError, OpenAIError
99

1010

@@ -20,4 +20,4 @@ def display_error(err: CLIError | APIError | pydantic.ValidationError) -> None:
2020
if isinstance(err, SilentCLIError):
2121
return
2222

23-
sys.stderr.write("{}{}Error:{} {}\n".format(organization_info(), Colours.FAIL, Colours.ENDC, err))
23+
sys.stderr.write("{}{}Error:{} {}\n".format(organization_info(), Colors.FAIL, Colors.ENDC, err))

src/openai/cli/_utils.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
from .._models import BaseModel
1010

1111

12-
class Colours:
12+
class Colors:
1313
HEADER = "\033[95m"
1414
OKBLUE = "\033[94m"
1515
OKGREEN = "\033[92m"

0 commit comments

Comments
 (0)