-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ac14452
commit 11f45f7
Showing
13 changed files
with
45 additions
and
93 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,9 @@ | ||
from ai21.clients.bedrock.ai21_bedrock_client import AI21BedrockClient | ||
from .clients.bedrock.bedrock_model_id import BedrockModelID | ||
from .clients.sagemaker.ai21_sagemaker_client import AI21SageMakerClient | ||
from .clients.studio.ai21_client import AI21Client | ||
from .version import VERSION | ||
from .clients import AI21Client, AI21BedrockClient, AI21SageMakerClient | ||
|
||
__version__ = VERSION | ||
|
||
__all__ = ["AI21Client", "AI21BedrockClient", "AI21SageMakerClient", "BedrockModelID"] | ||
|
||
|
||
class BedrockModelID: | ||
J2_MID_V1 = "ai21.j2-mid-v1" | ||
J2_ULTRA_V1 = "ai21.j2-ultra-v1" |
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,5 +0,0 @@ | ||
from .sagemaker import AI21SageMakerClient | ||
from .bedrock import AI21BedrockClient | ||
from .studio import AI21Client | ||
|
||
__all__ = ["AI21Client", "AI21BedrockClient", "AI21SageMakerClient"] | ||
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,3 +0,0 @@ | ||
from .ai21_bedrock_client import AI21BedrockClient | ||
|
||
__all__ = ["AI21BedrockClient"] | ||
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
class BedrockModelID: | ||
J2_MID_V1 = "ai21.j2-mid-v1" | ||
J2_ULTRA_V1 = "ai21.j2-ultra-v1" |
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,3 +0,0 @@ | ||
from .bedrock_completion import BedrockCompletion | ||
|
||
__all__ = ["BedrockCompletion"] | ||
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,3 +0,0 @@ | ||
from .ai21_sagemaker_client import AI21SageMakerClient | ||
|
||
__all__ = ["AI21SageMakerClient"] | ||
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,5 +1,3 @@ | ||
SAGEMAKER_ENDPOINT_KEY = "sm_endpoint" | ||
|
||
SAGEMAKER_MODEL_PACKAGE_NAMES = [ | ||
"j2-light", | ||
"j2-mid", | ||
|
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,7 +0,0 @@ | ||
from .sagemaker_completion import SageMakerCompletion | ||
from .sagemaker_gec import SageMakerGEC | ||
from .sagemaker_paraphrase import SageMakerParaphrase | ||
from .sagemaker_summarize import SageMakerSummarize | ||
from .sagemaker_answer import SageMakerAnswer | ||
|
||
__all__ = ["SageMakerSummarize", "SageMakerParaphrase", "SageMakerGEC", "SageMakerCompletion", "SageMakerAnswer"] | ||
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,3 +0,0 @@ | ||
from .ai21_client import AI21Client | ||
|
||
__all__ = ["AI21Client"] | ||
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,29 +0,0 @@ | ||
from .studio_answer import StudioAnswer | ||
from .studio_chat import StudioChat | ||
from .studio_completion import StudioCompletion | ||
from .studio_custom_model import StudioCustomModel | ||
from .studio_dataset import StudioDataset | ||
from .studio_embed import StudioEmbed | ||
from .studio_gec import StudioGEC | ||
from .studio_improvements import StudioImprovements | ||
from .studio_library import StudioLibrary | ||
from .studio_paraphrase import StudioParaphrase | ||
from .studio_segmentation import StudioSegmentation | ||
from .studio_summarize import StudioSummarize | ||
from .studio_summarize_by_segment import StudioSummarizeBySegment | ||
|
||
__all__ = [ | ||
"StudioSummarizeBySegment", | ||
"StudioSummarize", | ||
"StudioSegmentation", | ||
"StudioParaphrase", | ||
"StudioLibrary", | ||
"StudioImprovements", | ||
"StudioGEC", | ||
"StudioEmbed", | ||
"StudioDataset", | ||
"StudioCustomModel", | ||
"StudioCompletion", | ||
"StudioChat", | ||
"StudioAnswer", | ||
] | ||