Skip to content

release: 0.2.0-alpha.8 #253

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

Merged
merged 6 commits into from
Jul 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "0.2.0-alpha.7"
".": "0.2.0-alpha.8"
}
17 changes: 17 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,23 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
### Removed
* Deprecated and removed `publish_ground_truths` method. Use `update_data` instead.

## 0.2.0-alpha.8 (2024-07-08)

Full Changelog: [v0.2.0-alpha.7...v0.2.0-alpha.8](https://github.com/openlayer-ai/openlayer-python/compare/v0.2.0-alpha.7...v0.2.0-alpha.8)

### Features

* **api:** OpenAPI spec update via Stainless API ([#256](https://github.com/openlayer-ai/openlayer-python/issues/256)) ([af3d1ee](https://github.com/openlayer-ai/openlayer-python/commit/af3d1ee07dd9102f743157d117cbd355f485dc94))
* **api:** OpenAPI spec update via Stainless API ([#257](https://github.com/openlayer-ai/openlayer-python/issues/257)) ([38ac5ff](https://github.com/openlayer-ai/openlayer-python/commit/38ac5fff100fb0cfadd87b27f1b81ed23b7eba51))
* **api:** update via SDK Studio ([#254](https://github.com/openlayer-ai/openlayer-python/issues/254)) ([ea55198](https://github.com/openlayer-ai/openlayer-python/commit/ea55198158b95c3c32bc7f9361ebd4ae2a15b1ff))
* **api:** update via SDK Studio ([#258](https://github.com/openlayer-ai/openlayer-python/issues/258)) ([2b4eb5d](https://github.com/openlayer-ai/openlayer-python/commit/2b4eb5d340298559b2660d1a04456b8cc3edab3d))


### Chores

* go live ([#259](https://github.com/openlayer-ai/openlayer-python/issues/259)) ([ee2f102](https://github.com/openlayer-ai/openlayer-python/commit/ee2f1029f246ef9b70176b974d085166f7d9a322))
* move cost estimation logic to the backend ([b9e1134](https://github.com/openlayer-ai/openlayer-python/commit/b9e113481e570101ba8e9512ee5ebb49e5a5732c))

## 0.2.0-alpha.7 (2024-07-04)

Full Changelog: [v0.2.0-alpha.6...v0.2.0-alpha.7](https://github.com/openlayer-ai/openlayer-python/compare/v0.2.0-alpha.6...v0.2.0-alpha.7)
Expand Down
12 changes: 6 additions & 6 deletions api.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ from openlayer.types.projects import CommitListResponse

Methods:

- <code title="get /projects/{id}/versions">client.projects.commits.<a href="./src/openlayer/resources/projects/commits.py">list</a>(id, \*\*<a href="src/openlayer/types/projects/commit_list_params.py">params</a>) -> <a href="./src/openlayer/types/projects/commit_list_response.py">CommitListResponse</a></code>
- <code title="get /projects/{projectId}/versions">client.projects.commits.<a href="./src/openlayer/resources/projects/commits.py">list</a>(project_id, \*\*<a href="src/openlayer/types/projects/commit_list_params.py">params</a>) -> <a href="./src/openlayer/types/projects/commit_list_response.py">CommitListResponse</a></code>

## InferencePipelines

Expand All @@ -33,8 +33,8 @@ from openlayer.types.projects import InferencePipelineCreateResponse, InferenceP

Methods:

- <code title="post /projects/{id}/inference-pipelines">client.projects.inference_pipelines.<a href="./src/openlayer/resources/projects/inference_pipelines.py">create</a>(id, \*\*<a href="src/openlayer/types/projects/inference_pipeline_create_params.py">params</a>) -> <a href="./src/openlayer/types/projects/inference_pipeline_create_response.py">InferencePipelineCreateResponse</a></code>
- <code title="get /projects/{id}/inference-pipelines">client.projects.inference_pipelines.<a href="./src/openlayer/resources/projects/inference_pipelines.py">list</a>(id, \*\*<a href="src/openlayer/types/projects/inference_pipeline_list_params.py">params</a>) -> <a href="./src/openlayer/types/projects/inference_pipeline_list_response.py">InferencePipelineListResponse</a></code>
- <code title="post /projects/{projectId}/inference-pipelines">client.projects.inference_pipelines.<a href="./src/openlayer/resources/projects/inference_pipelines.py">create</a>(project_id, \*\*<a href="src/openlayer/types/projects/inference_pipeline_create_params.py">params</a>) -> <a href="./src/openlayer/types/projects/inference_pipeline_create_response.py">InferencePipelineCreateResponse</a></code>
- <code title="get /projects/{projectId}/inference-pipelines">client.projects.inference_pipelines.<a href="./src/openlayer/resources/projects/inference_pipelines.py">list</a>(project_id, \*\*<a href="src/openlayer/types/projects/inference_pipeline_list_params.py">params</a>) -> <a href="./src/openlayer/types/projects/inference_pipeline_list_response.py">InferencePipelineListResponse</a></code>

# Commits

Expand All @@ -48,7 +48,7 @@ from openlayer.types.commits import TestResultListResponse

Methods:

- <code title="get /versions/{id}/results">client.commits.test_results.<a href="./src/openlayer/resources/commits/test_results.py">list</a>(id, \*\*<a href="src/openlayer/types/commits/test_result_list_params.py">params</a>) -> <a href="./src/openlayer/types/commits/test_result_list_response.py">TestResultListResponse</a></code>
- <code title="get /versions/{projectVersionId}/results">client.commits.test_results.<a href="./src/openlayer/resources/commits/test_results.py">list</a>(project_version_id, \*\*<a href="src/openlayer/types/commits/test_result_list_params.py">params</a>) -> <a href="./src/openlayer/types/commits/test_result_list_response.py">TestResultListResponse</a></code>

# InferencePipelines

Expand All @@ -62,7 +62,7 @@ from openlayer.types.inference_pipelines import DataStreamResponse

Methods:

- <code title="post /inference-pipelines/{id}/data-stream">client.inference_pipelines.data.<a href="./src/openlayer/resources/inference_pipelines/data.py">stream</a>(id, \*\*<a href="src/openlayer/types/inference_pipelines/data_stream_params.py">params</a>) -> <a href="./src/openlayer/types/inference_pipelines/data_stream_response.py">DataStreamResponse</a></code>
- <code title="post /inference-pipelines/{inferencePipelineId}/data-stream">client.inference_pipelines.data.<a href="./src/openlayer/resources/inference_pipelines/data.py">stream</a>(inference_pipeline_id, \*\*<a href="src/openlayer/types/inference_pipelines/data_stream_params.py">params</a>) -> <a href="./src/openlayer/types/inference_pipelines/data_stream_response.py">DataStreamResponse</a></code>

## TestResults

Expand All @@ -74,4 +74,4 @@ from openlayer.types.inference_pipelines import TestResultListResponse

Methods:

- <code title="get /inference-pipelines/{id}/results">client.inference_pipelines.test_results.<a href="./src/openlayer/resources/inference_pipelines/test_results.py">list</a>(id, \*\*<a href="src/openlayer/types/inference_pipelines/test_result_list_params.py">params</a>) -> <a href="./src/openlayer/types/inference_pipelines/test_result_list_response.py">TestResultListResponse</a></code>
- <code title="get /inference-pipelines/{inferencePipelineId}/results">client.inference_pipelines.test_results.<a href="./src/openlayer/resources/inference_pipelines/test_results.py">list</a>(inference_pipeline_id, \*\*<a href="src/openlayer/types/inference_pipelines/test_result_list_params.py">params</a>) -> <a href="./src/openlayer/types/inference_pipelines/test_result_list_response.py">TestResultListResponse</a></code>
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "openlayer"
version = "0.2.0-alpha.7"
version = "0.2.0-alpha.8"
description = "The official Python library for the openlayer API"
dynamic = ["readme"]
license = "Apache-2.0"
Expand Down
2 changes: 1 addition & 1 deletion src/openlayer/_version.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

__title__ = "openlayer"
__version__ = "0.2.0-alpha.7" # x-release-please-version
__version__ = "0.2.0-alpha.8" # x-release-please-version
20 changes: 10 additions & 10 deletions src/openlayer/resources/commits/test_results.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def with_streaming_response(self) -> TestResultsResourceWithStreamingResponse:

def list(
self,
id: str,
project_version_id: str,
*,
include_archived: bool | NotGiven = NOT_GIVEN,
page: int | NotGiven = NOT_GIVEN,
Expand All @@ -56,7 +56,7 @@ def list(
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
) -> TestResultListResponse:
"""
List the test results for a commit (project version).
List the test results for a project commit (project version).

Args:
include_archived: Include archived goals.
Expand All @@ -79,10 +79,10 @@ def list(

timeout: Override the client-level default timeout for this request, in seconds
"""
if not id:
raise ValueError(f"Expected a non-empty value for `id` but received {id!r}")
if not project_version_id:
raise ValueError(f"Expected a non-empty value for `project_version_id` but received {project_version_id!r}")
return self._get(
f"/versions/{id}/results",
f"/versions/{project_version_id}/results",
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
Expand Down Expand Up @@ -114,7 +114,7 @@ def with_streaming_response(self) -> AsyncTestResultsResourceWithStreamingRespon

async def list(
self,
id: str,
project_version_id: str,
*,
include_archived: bool | NotGiven = NOT_GIVEN,
page: int | NotGiven = NOT_GIVEN,
Expand All @@ -129,7 +129,7 @@ async def list(
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
) -> TestResultListResponse:
"""
List the test results for a commit (project version).
List the test results for a project commit (project version).

Args:
include_archived: Include archived goals.
Expand All @@ -152,10 +152,10 @@ async def list(

timeout: Override the client-level default timeout for this request, in seconds
"""
if not id:
raise ValueError(f"Expected a non-empty value for `id` but received {id!r}")
if not project_version_id:
raise ValueError(f"Expected a non-empty value for `project_version_id` but received {project_version_id!r}")
return await self._get(
f"/versions/{id}/results",
f"/versions/{project_version_id}/results",
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
Expand Down
24 changes: 14 additions & 10 deletions src/openlayer/resources/inference_pipelines/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def with_streaming_response(self) -> DataResourceWithStreamingResponse:

def stream(
self,
id: str,
inference_pipeline_id: str,
*,
config: data_stream_params.Config,
rows: Iterable[Dict[str, object]],
Expand All @@ -51,7 +51,7 @@ def stream(
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
) -> DataStreamResponse:
"""
Stream production data to an inference pipeline in Openlayer.
Stream production data to an inference pipeline.

Args:
config: Configuration for the data stream. Depends on your **Openlayer project task
Expand All @@ -67,10 +67,12 @@ def stream(

timeout: Override the client-level default timeout for this request, in seconds
"""
if not id:
raise ValueError(f"Expected a non-empty value for `id` but received {id!r}")
if not inference_pipeline_id:
raise ValueError(
f"Expected a non-empty value for `inference_pipeline_id` but received {inference_pipeline_id!r}"
)
return self._post(
f"/inference-pipelines/{id}/data-stream",
f"/inference-pipelines/{inference_pipeline_id}/data-stream",
body=maybe_transform(
{
"config": config,
Expand All @@ -96,7 +98,7 @@ def with_streaming_response(self) -> AsyncDataResourceWithStreamingResponse:

async def stream(
self,
id: str,
inference_pipeline_id: str,
*,
config: data_stream_params.Config,
rows: Iterable[Dict[str, object]],
Expand All @@ -108,7 +110,7 @@ async def stream(
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
) -> DataStreamResponse:
"""
Stream production data to an inference pipeline in Openlayer.
Stream production data to an inference pipeline.

Args:
config: Configuration for the data stream. Depends on your **Openlayer project task
Expand All @@ -124,10 +126,12 @@ async def stream(

timeout: Override the client-level default timeout for this request, in seconds
"""
if not id:
raise ValueError(f"Expected a non-empty value for `id` but received {id!r}")
if not inference_pipeline_id:
raise ValueError(
f"Expected a non-empty value for `inference_pipeline_id` but received {inference_pipeline_id!r}"
)
return await self._post(
f"/inference-pipelines/{id}/data-stream",
f"/inference-pipelines/{inference_pipeline_id}/data-stream",
body=await async_maybe_transform(
{
"config": config,
Expand Down
32 changes: 14 additions & 18 deletions src/openlayer/resources/inference_pipelines/test_results.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,8 @@ def with_streaming_response(self) -> TestResultsResourceWithStreamingResponse:

def list(
self,
id: str,
inference_pipeline_id: str,
*,
include_archived: bool | NotGiven = NOT_GIVEN,
page: int | NotGiven = NOT_GIVEN,
per_page: int | NotGiven = NOT_GIVEN,
status: Literal["running", "passing", "failing", "skipped", "error"] | NotGiven = NOT_GIVEN,
Expand All @@ -56,11 +55,9 @@ def list(
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
) -> TestResultListResponse:
"""
List the test results under an inference pipeline.
List the latest test results for an inference pipeline.

Args:
include_archived: Include archived goals.

page: The page to return in a paginated query.

per_page: Maximum number of items to return per page.
Expand All @@ -79,18 +76,19 @@ def list(

timeout: Override the client-level default timeout for this request, in seconds
"""
if not id:
raise ValueError(f"Expected a non-empty value for `id` but received {id!r}")
if not inference_pipeline_id:
raise ValueError(
f"Expected a non-empty value for `inference_pipeline_id` but received {inference_pipeline_id!r}"
)
return self._get(
f"/inference-pipelines/{id}/results",
f"/inference-pipelines/{inference_pipeline_id}/results",
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
extra_body=extra_body,
timeout=timeout,
query=maybe_transform(
{
"include_archived": include_archived,
"page": page,
"per_page": per_page,
"status": status,
Expand All @@ -114,9 +112,8 @@ def with_streaming_response(self) -> AsyncTestResultsResourceWithStreamingRespon

async def list(
self,
id: str,
inference_pipeline_id: str,
*,
include_archived: bool | NotGiven = NOT_GIVEN,
page: int | NotGiven = NOT_GIVEN,
per_page: int | NotGiven = NOT_GIVEN,
status: Literal["running", "passing", "failing", "skipped", "error"] | NotGiven = NOT_GIVEN,
Expand All @@ -129,11 +126,9 @@ async def list(
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
) -> TestResultListResponse:
"""
List the test results under an inference pipeline.
List the latest test results for an inference pipeline.

Args:
include_archived: Include archived goals.

page: The page to return in a paginated query.

per_page: Maximum number of items to return per page.
Expand All @@ -152,18 +147,19 @@ async def list(

timeout: Override the client-level default timeout for this request, in seconds
"""
if not id:
raise ValueError(f"Expected a non-empty value for `id` but received {id!r}")
if not inference_pipeline_id:
raise ValueError(
f"Expected a non-empty value for `inference_pipeline_id` but received {inference_pipeline_id!r}"
)
return await self._get(
f"/inference-pipelines/{id}/results",
f"/inference-pipelines/{inference_pipeline_id}/results",
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
extra_body=extra_body,
timeout=timeout,
query=await async_maybe_transform(
{
"include_archived": include_archived,
"page": page,
"per_page": per_page,
"status": status,
Expand Down
20 changes: 10 additions & 10 deletions src/openlayer/resources/projects/commits.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def with_streaming_response(self) -> CommitsResourceWithStreamingResponse:

def list(
self,
id: str,
project_id: str,
*,
page: int | NotGiven = NOT_GIVEN,
per_page: int | NotGiven = NOT_GIVEN,
Expand All @@ -49,7 +49,7 @@ def list(
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
) -> CommitListResponse:
"""
List the commits (project versions) under a project.
List the commits (project versions) in a project.

Args:
page: The page to return in a paginated query.
Expand All @@ -64,10 +64,10 @@ def list(

timeout: Override the client-level default timeout for this request, in seconds
"""
if not id:
raise ValueError(f"Expected a non-empty value for `id` but received {id!r}")
if not project_id:
raise ValueError(f"Expected a non-empty value for `project_id` but received {project_id!r}")
return self._get(
f"/projects/{id}/versions",
f"/projects/{project_id}/versions",
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
Expand Down Expand Up @@ -96,7 +96,7 @@ def with_streaming_response(self) -> AsyncCommitsResourceWithStreamingResponse:

async def list(
self,
id: str,
project_id: str,
*,
page: int | NotGiven = NOT_GIVEN,
per_page: int | NotGiven = NOT_GIVEN,
Expand All @@ -108,7 +108,7 @@ async def list(
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
) -> CommitListResponse:
"""
List the commits (project versions) under a project.
List the commits (project versions) in a project.

Args:
page: The page to return in a paginated query.
Expand All @@ -123,10 +123,10 @@ async def list(

timeout: Override the client-level default timeout for this request, in seconds
"""
if not id:
raise ValueError(f"Expected a non-empty value for `id` but received {id!r}")
if not project_id:
raise ValueError(f"Expected a non-empty value for `project_id` but received {project_id!r}")
return await self._get(
f"/projects/{id}/versions",
f"/projects/{project_id}/versions",
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
Expand Down
Loading