|
58 | 58 | from algoliasearch.ingestion.models.event_sort_keys import EventSortKeys |
59 | 59 | from algoliasearch.ingestion.models.event_status import EventStatus |
60 | 60 | from algoliasearch.ingestion.models.event_type import EventType |
61 | | -from algoliasearch.ingestion.models.generate_transformation_code_payload import ( |
62 | | - GenerateTransformationCodePayload, |
63 | | -) |
64 | | -from algoliasearch.ingestion.models.generate_transformation_code_response import ( |
65 | | - GenerateTransformationCodeResponse, |
66 | | -) |
67 | 61 | from algoliasearch.ingestion.models.list_authentications_response import ( |
68 | 62 | ListAuthenticationsResponse, |
69 | 63 | ) |
|
113 | 107 | from algoliasearch.ingestion.models.transformation_create_response import ( |
114 | 108 | TransformationCreateResponse, |
115 | 109 | ) |
116 | | -from algoliasearch.ingestion.models.transformation_models import TransformationModels |
117 | 110 | from algoliasearch.ingestion.models.transformation_search import TransformationSearch |
118 | 111 | from algoliasearch.ingestion.models.transformation_try import TransformationTry |
119 | 112 | from algoliasearch.ingestion.models.transformation_try_response import ( |
@@ -1478,67 +1471,6 @@ async def enable_task_v1( |
1478 | 1471 | resp = await self.enable_task_v1_with_http_info(task_id, request_options) |
1479 | 1472 | return resp.deserialize(TaskUpdateResponse, resp.raw_data) |
1480 | 1473 |
|
1481 | | - async def generate_transformation_code_with_http_info( |
1482 | | - self, |
1483 | | - generate_transformation_code_payload: GenerateTransformationCodePayload, |
1484 | | - request_options: Optional[Union[dict, RequestOptions]] = None, |
1485 | | - ) -> ApiResponse[str]: |
1486 | | - """ |
1487 | | - Generates code for the selected model based on the given prompt. |
1488 | | -
|
1489 | | - Required API Key ACLs: |
1490 | | - - addObject |
1491 | | - - deleteIndex |
1492 | | - - editSettings |
1493 | | -
|
1494 | | - :param generate_transformation_code_payload: (required) |
1495 | | - :type generate_transformation_code_payload: GenerateTransformationCodePayload |
1496 | | - :param request_options: The request options to send along with the query, they will be merged with the transporter base parameters (headers, query params, timeouts, etc.). (optional) |
1497 | | - :return: Returns the raw algoliasearch 'APIResponse' object. |
1498 | | - """ |
1499 | | - |
1500 | | - if generate_transformation_code_payload is None: |
1501 | | - raise ValueError( |
1502 | | - "Parameter `generate_transformation_code_payload` is required when calling `generate_transformation_code`." |
1503 | | - ) |
1504 | | - |
1505 | | - _data = {} |
1506 | | - if generate_transformation_code_payload is not None: |
1507 | | - _data = generate_transformation_code_payload |
1508 | | - |
1509 | | - return await self._transporter.request( |
1510 | | - verb=Verb.POST, |
1511 | | - path="/1/transformations/models", |
1512 | | - request_options=self._request_options.merge( |
1513 | | - data=dumps(bodySerializer(_data)), |
1514 | | - user_request_options=request_options, |
1515 | | - ), |
1516 | | - use_read_transporter=False, |
1517 | | - ) |
1518 | | - |
1519 | | - async def generate_transformation_code( |
1520 | | - self, |
1521 | | - generate_transformation_code_payload: GenerateTransformationCodePayload, |
1522 | | - request_options: Optional[Union[dict, RequestOptions]] = None, |
1523 | | - ) -> GenerateTransformationCodeResponse: |
1524 | | - """ |
1525 | | - Generates code for the selected model based on the given prompt. |
1526 | | -
|
1527 | | - Required API Key ACLs: |
1528 | | - - addObject |
1529 | | - - deleteIndex |
1530 | | - - editSettings |
1531 | | -
|
1532 | | - :param generate_transformation_code_payload: (required) |
1533 | | - :type generate_transformation_code_payload: GenerateTransformationCodePayload |
1534 | | - :param request_options: The request options to send along with the query, they will be merged with the transporter base parameters (headers, query params, timeouts, etc.). (optional) |
1535 | | - :return: Returns the deserialized response in a 'GenerateTransformationCodeResponse' result object. |
1536 | | - """ |
1537 | | - resp = await self.generate_transformation_code_with_http_info( |
1538 | | - generate_transformation_code_payload, request_options |
1539 | | - ) |
1540 | | - return resp.deserialize(GenerateTransformationCodeResponse, resp.raw_data) |
1541 | | - |
1542 | 1474 | async def get_authentication_with_http_info( |
1543 | 1475 | self, |
1544 | 1476 | authentication_id: Annotated[ |
@@ -3202,47 +3134,6 @@ async def list_tasks_v1( |
3202 | 3134 | ) |
3203 | 3135 | return resp.deserialize(ListTasksResponseV1, resp.raw_data) |
3204 | 3136 |
|
3205 | | - async def list_transformation_models_with_http_info( |
3206 | | - self, request_options: Optional[Union[dict, RequestOptions]] = None |
3207 | | - ) -> ApiResponse[str]: |
3208 | | - """ |
3209 | | - Retrieves a list of existing LLM transformation helpers. |
3210 | | -
|
3211 | | - Required API Key ACLs: |
3212 | | - - addObject |
3213 | | - - deleteIndex |
3214 | | - - editSettings |
3215 | | -
|
3216 | | - :param request_options: The request options to send along with the query, they will be merged with the transporter base parameters (headers, query params, timeouts, etc.). (optional) |
3217 | | - :return: Returns the raw algoliasearch 'APIResponse' object. |
3218 | | - """ |
3219 | | - |
3220 | | - return await self._transporter.request( |
3221 | | - verb=Verb.GET, |
3222 | | - path="/1/transformations/models", |
3223 | | - request_options=self._request_options.merge( |
3224 | | - user_request_options=request_options, |
3225 | | - ), |
3226 | | - use_read_transporter=False, |
3227 | | - ) |
3228 | | - |
3229 | | - async def list_transformation_models( |
3230 | | - self, request_options: Optional[Union[dict, RequestOptions]] = None |
3231 | | - ) -> TransformationModels: |
3232 | | - """ |
3233 | | - Retrieves a list of existing LLM transformation helpers. |
3234 | | -
|
3235 | | - Required API Key ACLs: |
3236 | | - - addObject |
3237 | | - - deleteIndex |
3238 | | - - editSettings |
3239 | | -
|
3240 | | - :param request_options: The request options to send along with the query, they will be merged with the transporter base parameters (headers, query params, timeouts, etc.). (optional) |
3241 | | - :return: Returns the deserialized response in a 'TransformationModels' result object. |
3242 | | - """ |
3243 | | - resp = await self.list_transformation_models_with_http_info(request_options) |
3244 | | - return resp.deserialize(TransformationModels, resp.raw_data) |
3245 | | - |
3246 | 3137 | async def list_transformations_with_http_info( |
3247 | 3138 | self, |
3248 | 3139 | items_per_page: Annotated[ |
@@ -6105,67 +5996,6 @@ def enable_task_v1( |
6105 | 5996 | resp = self.enable_task_v1_with_http_info(task_id, request_options) |
6106 | 5997 | return resp.deserialize(TaskUpdateResponse, resp.raw_data) |
6107 | 5998 |
|
6108 | | - def generate_transformation_code_with_http_info( |
6109 | | - self, |
6110 | | - generate_transformation_code_payload: GenerateTransformationCodePayload, |
6111 | | - request_options: Optional[Union[dict, RequestOptions]] = None, |
6112 | | - ) -> ApiResponse[str]: |
6113 | | - """ |
6114 | | - Generates code for the selected model based on the given prompt. |
6115 | | -
|
6116 | | - Required API Key ACLs: |
6117 | | - - addObject |
6118 | | - - deleteIndex |
6119 | | - - editSettings |
6120 | | -
|
6121 | | - :param generate_transformation_code_payload: (required) |
6122 | | - :type generate_transformation_code_payload: GenerateTransformationCodePayload |
6123 | | - :param request_options: The request options to send along with the query, they will be merged with the transporter base parameters (headers, query params, timeouts, etc.). (optional) |
6124 | | - :return: Returns the raw algoliasearch 'APIResponse' object. |
6125 | | - """ |
6126 | | - |
6127 | | - if generate_transformation_code_payload is None: |
6128 | | - raise ValueError( |
6129 | | - "Parameter `generate_transformation_code_payload` is required when calling `generate_transformation_code`." |
6130 | | - ) |
6131 | | - |
6132 | | - _data = {} |
6133 | | - if generate_transformation_code_payload is not None: |
6134 | | - _data = generate_transformation_code_payload |
6135 | | - |
6136 | | - return self._transporter.request( |
6137 | | - verb=Verb.POST, |
6138 | | - path="/1/transformations/models", |
6139 | | - request_options=self._request_options.merge( |
6140 | | - data=dumps(bodySerializer(_data)), |
6141 | | - user_request_options=request_options, |
6142 | | - ), |
6143 | | - use_read_transporter=False, |
6144 | | - ) |
6145 | | - |
6146 | | - def generate_transformation_code( |
6147 | | - self, |
6148 | | - generate_transformation_code_payload: GenerateTransformationCodePayload, |
6149 | | - request_options: Optional[Union[dict, RequestOptions]] = None, |
6150 | | - ) -> GenerateTransformationCodeResponse: |
6151 | | - """ |
6152 | | - Generates code for the selected model based on the given prompt. |
6153 | | -
|
6154 | | - Required API Key ACLs: |
6155 | | - - addObject |
6156 | | - - deleteIndex |
6157 | | - - editSettings |
6158 | | -
|
6159 | | - :param generate_transformation_code_payload: (required) |
6160 | | - :type generate_transformation_code_payload: GenerateTransformationCodePayload |
6161 | | - :param request_options: The request options to send along with the query, they will be merged with the transporter base parameters (headers, query params, timeouts, etc.). (optional) |
6162 | | - :return: Returns the deserialized response in a 'GenerateTransformationCodeResponse' result object. |
6163 | | - """ |
6164 | | - resp = self.generate_transformation_code_with_http_info( |
6165 | | - generate_transformation_code_payload, request_options |
6166 | | - ) |
6167 | | - return resp.deserialize(GenerateTransformationCodeResponse, resp.raw_data) |
6168 | | - |
6169 | 5999 | def get_authentication_with_http_info( |
6170 | 6000 | self, |
6171 | 6001 | authentication_id: Annotated[ |
@@ -7827,47 +7657,6 @@ def list_tasks_v1( |
7827 | 7657 | ) |
7828 | 7658 | return resp.deserialize(ListTasksResponseV1, resp.raw_data) |
7829 | 7659 |
|
7830 | | - def list_transformation_models_with_http_info( |
7831 | | - self, request_options: Optional[Union[dict, RequestOptions]] = None |
7832 | | - ) -> ApiResponse[str]: |
7833 | | - """ |
7834 | | - Retrieves a list of existing LLM transformation helpers. |
7835 | | -
|
7836 | | - Required API Key ACLs: |
7837 | | - - addObject |
7838 | | - - deleteIndex |
7839 | | - - editSettings |
7840 | | -
|
7841 | | - :param request_options: The request options to send along with the query, they will be merged with the transporter base parameters (headers, query params, timeouts, etc.). (optional) |
7842 | | - :return: Returns the raw algoliasearch 'APIResponse' object. |
7843 | | - """ |
7844 | | - |
7845 | | - return self._transporter.request( |
7846 | | - verb=Verb.GET, |
7847 | | - path="/1/transformations/models", |
7848 | | - request_options=self._request_options.merge( |
7849 | | - user_request_options=request_options, |
7850 | | - ), |
7851 | | - use_read_transporter=False, |
7852 | | - ) |
7853 | | - |
7854 | | - def list_transformation_models( |
7855 | | - self, request_options: Optional[Union[dict, RequestOptions]] = None |
7856 | | - ) -> TransformationModels: |
7857 | | - """ |
7858 | | - Retrieves a list of existing LLM transformation helpers. |
7859 | | -
|
7860 | | - Required API Key ACLs: |
7861 | | - - addObject |
7862 | | - - deleteIndex |
7863 | | - - editSettings |
7864 | | -
|
7865 | | - :param request_options: The request options to send along with the query, they will be merged with the transporter base parameters (headers, query params, timeouts, etc.). (optional) |
7866 | | - :return: Returns the deserialized response in a 'TransformationModels' result object. |
7867 | | - """ |
7868 | | - resp = self.list_transformation_models_with_http_info(request_options) |
7869 | | - return resp.deserialize(TransformationModels, resp.raw_data) |
7870 | | - |
7871 | 7660 | def list_transformations_with_http_info( |
7872 | 7661 | self, |
7873 | 7662 | items_per_page: Annotated[ |
|
0 commit comments