From 6ec7a7f183db51d20449c3d796d0f94630c3df06 Mon Sep 17 00:00:00 2001 From: stainless-bot Date: Tue, 13 Aug 2024 16:43:56 +0000 Subject: [PATCH] chore(examples): minor formatting changes --- tests/api_resources/commits/test_test_results.py | 4 ++-- tests/api_resources/inference_pipelines/test_data.py | 12 ++++++------ tests/api_resources/inference_pipelines/test_rows.py | 8 ++++---- .../inference_pipelines/test_test_results.py | 4 ++-- 4 files changed, 14 insertions(+), 14 deletions(-) diff --git a/tests/api_resources/commits/test_test_results.py b/tests/api_resources/commits/test_test_results.py index 83853215..da776599 100644 --- a/tests/api_resources/commits/test_test_results.py +++ b/tests/api_resources/commits/test_test_results.py @@ -31,7 +31,7 @@ def test_method_list_with_all_params(self, client: Openlayer) -> None: include_archived=True, page=1, per_page=1, - status="passing", + status="running", type="integrity", ) assert_matches_type(TestResultListResponse, test_result, path=["response"]) @@ -85,7 +85,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncOpenlayer) - include_archived=True, page=1, per_page=1, - status="passing", + status="running", type="integrity", ) assert_matches_type(TestResultListResponse, test_result, path=["response"]) diff --git a/tests/api_resources/inference_pipelines/test_data.py b/tests/api_resources/inference_pipelines/test_data.py index 054a38f5..2ce79e42 100644 --- a/tests/api_resources/inference_pipelines/test_data.py +++ b/tests/api_resources/inference_pipelines/test_data.py @@ -39,7 +39,7 @@ def test_method_stream_with_all_params(self, client: Openlayer) -> None: data = client.inference_pipelines.data.stream( inference_pipeline_id="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e", config={ - "num_of_token_column_name": "tokens", + "output_column_name": "output", "context_column_name": "context", "cost_column_name": "cost", "ground_truth_column_name": "ground_truth", @@ -47,11 +47,11 @@ def test_method_stream_with_all_params(self, client: Openlayer) -> None: "input_variable_names": ["user_query"], "latency_column_name": "latency", "metadata": {}, - "output_column_name": "output", + "num_of_token_column_name": "tokens", "prompt": [ { - "role": "user", "content": "{{ user_query }}", + "role": "user", } ], "question_column_name": "question", @@ -156,7 +156,7 @@ async def test_method_stream_with_all_params(self, async_client: AsyncOpenlayer) data = await async_client.inference_pipelines.data.stream( inference_pipeline_id="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e", config={ - "num_of_token_column_name": "tokens", + "output_column_name": "output", "context_column_name": "context", "cost_column_name": "cost", "ground_truth_column_name": "ground_truth", @@ -164,11 +164,11 @@ async def test_method_stream_with_all_params(self, async_client: AsyncOpenlayer) "input_variable_names": ["user_query"], "latency_column_name": "latency", "metadata": {}, - "output_column_name": "output", + "num_of_token_column_name": "tokens", "prompt": [ { - "role": "user", "content": "{{ user_query }}", + "role": "user", } ], "question_column_name": "question", diff --git a/tests/api_resources/inference_pipelines/test_rows.py b/tests/api_resources/inference_pipelines/test_rows.py index a6c95710..bef1c42f 100644 --- a/tests/api_resources/inference_pipelines/test_rows.py +++ b/tests/api_resources/inference_pipelines/test_rows.py @@ -33,11 +33,11 @@ def test_method_update_with_all_params(self, client: Openlayer) -> None: inference_id="inferenceId", row={}, config={ + "ground_truth_column_name": "ground_truth", + "human_feedback_column_name": "human_feedback", "inference_id_column_name": "id", "latency_column_name": "latency", "timestamp_column_name": "timestamp", - "ground_truth_column_name": "ground_truth", - "human_feedback_column_name": "human_feedback", }, ) assert_matches_type(RowUpdateResponse, row, path=["response"]) @@ -99,11 +99,11 @@ async def test_method_update_with_all_params(self, async_client: AsyncOpenlayer) inference_id="inferenceId", row={}, config={ + "ground_truth_column_name": "ground_truth", + "human_feedback_column_name": "human_feedback", "inference_id_column_name": "id", "latency_column_name": "latency", "timestamp_column_name": "timestamp", - "ground_truth_column_name": "ground_truth", - "human_feedback_column_name": "human_feedback", }, ) assert_matches_type(RowUpdateResponse, row, path=["response"]) diff --git a/tests/api_resources/inference_pipelines/test_test_results.py b/tests/api_resources/inference_pipelines/test_test_results.py index 210aa423..2d5bc065 100644 --- a/tests/api_resources/inference_pipelines/test_test_results.py +++ b/tests/api_resources/inference_pipelines/test_test_results.py @@ -30,7 +30,7 @@ def test_method_list_with_all_params(self, client: Openlayer) -> None: inference_pipeline_id="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e", page=1, per_page=1, - status="passing", + status="running", type="integrity", ) assert_matches_type(TestResultListResponse, test_result, path=["response"]) @@ -83,7 +83,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncOpenlayer) - inference_pipeline_id="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e", page=1, per_page=1, - status="passing", + status="running", type="integrity", ) assert_matches_type(TestResultListResponse, test_result, path=["response"])