From 490f8f0ae34cc6769a7555cf77fef0192963ad06 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 10 Oct 2024 10:10:14 +0000 Subject: [PATCH 1/2] chore: fix GetNextPage docstring (#78) --- internal/pagination/pagination.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/internal/pagination/pagination.go b/internal/pagination/pagination.go index d41f647d..fd832e00 100644 --- a/internal/pagination/pagination.go +++ b/internal/pagination/pagination.go @@ -35,9 +35,9 @@ func (r pageJSON) RawJSON() string { return r.raw } -// NextPage returns the next page as defined by this pagination style. When there -// is no next page, this function will return a 'nil' for the page value, but will -// not return an error +// GetNextPage returns the next page as defined by this pagination style. When +// there is no next page, this function will return a 'nil' for the page value, but +// will not return an error func (r *Page[T]) GetNextPage() (res *Page[T], err error) { // This page represents a response that isn't actually paginated at the API level // so there will never be a next page. @@ -130,9 +130,9 @@ func (r cursorPageJSON) RawJSON() string { return r.raw } -// NextPage returns the next page as defined by this pagination style. When there -// is no next page, this function will return a 'nil' for the page value, but will -// not return an error +// GetNextPage returns the next page as defined by this pagination style. When +// there is no next page, this function will return a 'nil' for the page value, but +// will not return an error func (r *CursorPage[T]) GetNextPage() (res *CursorPage[T], err error) { items := r.Data if items == nil || len(items) == 0 { From 41e420a3b20883343d144a504e171fb8277b3d05 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 14 Oct 2024 05:03:07 +0000 Subject: [PATCH 2/2] release: 0.1.0-alpha.27 --- .release-please-manifest.json | 2 +- CHANGELOG.md | 8 ++++++++ README.md | 2 +- internal/version.go | 2 +- 4 files changed, 11 insertions(+), 3 deletions(-) diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 315f7d30..7657c56b 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.1.0-alpha.26" + ".": "0.1.0-alpha.27" } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 039a2f84..7401f0ba 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 0.1.0-alpha.27 (2024-10-14) + +Full Changelog: [v0.1.0-alpha.26...v0.1.0-alpha.27](https://github.com/openai/openai-go/compare/v0.1.0-alpha.26...v0.1.0-alpha.27) + +### Chores + +* fix GetNextPage docstring ([#78](https://github.com/openai/openai-go/issues/78)) ([490f8f0](https://github.com/openai/openai-go/commit/490f8f0ae34cc6769a7555cf77fef0192963ad06)) + ## 0.1.0-alpha.26 (2024-10-08) Full Changelog: [v0.1.0-alpha.25...v0.1.0-alpha.26](https://github.com/openai/openai-go/compare/v0.1.0-alpha.25...v0.1.0-alpha.26) diff --git a/README.md b/README.md index 38bf640d..4e0bb5fd 100644 --- a/README.md +++ b/README.md @@ -25,7 +25,7 @@ Or to pin the version: ```sh -go get -u 'github.com/openai/openai-go@v0.1.0-alpha.26' +go get -u 'github.com/openai/openai-go@v0.1.0-alpha.27' ``` diff --git a/internal/version.go b/internal/version.go index 0c14f5e5..7ac0c2c4 100644 --- a/internal/version.go +++ b/internal/version.go @@ -2,4 +2,4 @@ package internal -const PackageVersion = "0.1.0-alpha.26" // x-release-please-version +const PackageVersion = "0.1.0-alpha.27" // x-release-please-version