-
Notifications
You must be signed in to change notification settings - Fork 10
feat: Sunset tsms and j2 #225
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
| path = f"{path}/{self._module_name}" | ||
|
|
||
| def _get_completion_path(self, model: str): | ||
| path = f"/{model}/{self._module_name}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's turn it into an inline return :)
| @@ -0,0 +1 @@ | |||
| <your content goes here> | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this file needed?
| @@ -0,0 +1 @@ | |||
| <your content goes here> | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this file needed?
| "AI21BedrockClient", | ||
| "AI21SageMakerClient", | ||
| "BedrockModelID", | ||
| "SageMaker", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove - AsyncAI21SageMakerClient
ai21/models/__init__.py
Outdated
| from ai21.models.responses.segmentation_response import SegmentationResponse | ||
| from ai21.models.responses.summarize_by_segment_response import SummarizeBySegmentResponse, SegmentSummary, Highlight | ||
| from ai21.models.responses.summarize_response import SummarizeResponse | ||
| from ai21.models.summary_method import SummaryMethod |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What about this?
| ) | ||
|
|
||
|
|
||
| def get_studio_chat(is_async: bool = False): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please Remove
| @pytest.mark.parametrize( | ||
| ids=[ | ||
| "async_studio_answer", | ||
| "async_studio_chat", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove
| from ai21.models.ai21_base_model import AI21BaseModel | ||
| from tests.unittests.clients.studio.resources.conftest import ( | ||
| get_studio_answer, | ||
| get_studio_chat, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove
| return answer_response, expected_dict, AnswerResponse | ||
|
|
||
|
|
||
| def get_chat_response(): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove
Removing all TSMs, custom-models, datasets and J2 support.