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- """
161INSTRUCTIONS = """
172
18- OpenAI error:
3+ OpenAI error:
194
20- missing `{library}`
5+ missing `{library}`
216
227This feature requires additional dependencies:
238
You can’t perform that action at this time.
0 commit comments