File tree Expand file tree Collapse file tree 2 files changed +16
-17
lines changed Expand file tree Collapse file tree 2 files changed +16
-17
lines changed Original file line number Diff line number Diff line change
1
+ """
2
+ This module helps make data libraries like `numpy` and `pandas` optional dependencies.
3
+
4
+ The libraries add up to 130MB+, which makes it challenging to deploy applications
5
+ using this library in environments with code size constraints, like AWS Lambda.
6
+
7
+ This module serves as an import proxy and provides a few utilities for dealing with the optionality.
8
+
9
+ Since the primary use case of this library (talking to the OpenAI API) doesn't generally require data libraries,
10
+ it's safe to make them optional. The rare case when data libraries are needed in the client is handled through
11
+ assertions with instructive error messages.
12
+
13
+ See also `setup.py`.
14
+ """
Original file line number Diff line number Diff line change 1
- """
2
- This module helps make data libraries like `numpy` and `pandas` optional dependencies.
3
-
4
- The libraries add up to 130MB+, which makes it challenging to deploy applications
5
- using this library in environments with code size constraints, like AWS Lambda.
6
-
7
- This module serves as an import proxy and provides a few utilities for dealing with the optionality.
8
-
9
- Since the primary use case of this library (talking to the OpenAI API) doesn’t generally require data libraries,
10
- it’s safe to make them optional. The rare case when data libraries are needed in the client is handled through
11
- assertions with instructive error messages.
12
-
13
- See also `setup.py`.
14
-
15
- """
16
1
INSTRUCTIONS = """
17
2
18
- OpenAI error:
3
+ OpenAI error:
19
4
20
- missing `{library}`
5
+ missing `{library}`
21
6
22
7
This feature requires additional dependencies:
23
8
You can’t perform that action at this time.
0 commit comments