-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🌿 Fern Regeneration -- December 20, 2024 (#624)
* SDK regeneration * Fixes * Update error * Fix CI * ignore type * aws deps --------- Co-authored-by: fern-api <115122769+fern-api[bot]@users.noreply.github.com> Co-authored-by: Billy Trend <billy@cohere.com>
- Loading branch information
1 parent
05fe9e7
commit bb92887
Showing
10 changed files
with
172 additions
and
1,144 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,24 @@ | ||
|
||
warning = "AWS dependencies are not installed. Please install boto3, botocore, and sagemaker." | ||
|
||
def lazy_sagemaker(): | ||
try: | ||
import sagemaker as sage # type: ignore | ||
return sage | ||
except ImportError: | ||
raise ImportError("Sagemaker not available. Please install sagemaker.") | ||
raise ImportError(warning) | ||
|
||
def lazy_boto3(): | ||
try: | ||
import boto3 # type: ignore | ||
return boto3 | ||
except ImportError: | ||
raise ImportError("Boto3 not available. Please install lazy_boto3().") | ||
raise ImportError(warning) | ||
|
||
def lazy_botocore(): | ||
try: | ||
import botocore # type: ignore | ||
return botocore | ||
except ImportError: | ||
raise ImportError("Botocore not available. Please install botocore.") | ||
raise ImportError(warning) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters