From 2f6fb970c1ca9194cb5ea412af503d93773c59bf Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 1 May 2025 17:31:19 +0000 Subject: [PATCH] revert custom code applied to a generated branch (#410) Co-authored-by: stainless-app[bot] <142633134+stainless-app[bot]@users.noreply.github.com> --- .github/workflows/create-releases.yml | 29 -------------------------- betathreadmessage.go | 10 ++++----- examples/image-generation/.DS_Store | Bin 6148 -> 0 bytes 3 files changed, 5 insertions(+), 34 deletions(-) delete mode 100644 .github/workflows/create-releases.yml delete mode 100644 examples/image-generation/.DS_Store diff --git a/.github/workflows/create-releases.yml b/.github/workflows/create-releases.yml deleted file mode 100644 index 069decb..0000000 --- a/.github/workflows/create-releases.yml +++ /dev/null @@ -1,29 +0,0 @@ -name: Create releases -on: - schedule: - - cron: '0 5 * * *' # every day at 5am UTC - push: - branches: - - main - -jobs: - release: - name: release - if: github.ref == 'refs/heads/main' && github.repository == 'openai/openai-go' - runs-on: ubuntu-latest - environment: publish - - steps: - - uses: actions/checkout@v4 - - - uses: stainless-api/trigger-release-please@v1 - id: release - with: - repo: ${{ github.event.repository.full_name }} - stainless-api-key: ${{ secrets.STAINLESS_API_KEY }} - - - name: Generate godocs - if: ${{ steps.release.outputs.releases_created }} - run: | - version=$(jq -r '. | to_entries[0] | .value' .release-please-manifest.json) - curl -X POST https://pkg.go.dev/fetch/github.com/openai/openai-go@v${version} diff --git a/betathreadmessage.go b/betathreadmessage.go index bc7b418..b7eec7d 100644 --- a/betathreadmessage.go +++ b/betathreadmessage.go @@ -926,7 +926,7 @@ func (r *MessageAttachment) UnmarshalJSON(data []byte) error { } // MessageAttachmentToolUnion contains all possible properties and values from -// [CodeInterpreterTool], [MessageAttachmentToolFileSearchTool]. +// [CodeInterpreterTool], [MessageAttachmentToolAssistantToolsFileSearchTypeOnly]. // // Use the methods beginning with 'As' to cast the union to one of its variants. type MessageAttachmentToolUnion struct { @@ -942,7 +942,7 @@ func (u MessageAttachmentToolUnion) AsCodeInterpreterTool() (v CodeInterpreterTo return } -func (u MessageAttachmentToolUnion) AsFileSearchTool() (v MessageAttachmentToolFileSearchTool) { +func (u MessageAttachmentToolUnion) AsFileSearchTool() (v MessageAttachmentToolAssistantToolsFileSearchTypeOnly) { apijson.UnmarshalRoot(json.RawMessage(u.JSON.raw), &v) return } @@ -954,7 +954,7 @@ func (r *MessageAttachmentToolUnion) UnmarshalJSON(data []byte) error { return apijson.UnmarshalRoot(data, r) } -type MessageAttachmentToolFileSearchTool struct { +type MessageAttachmentToolAssistantToolsFileSearchTypeOnly struct { // The type of tool being defined: `file_search` Type constant.FileSearch `json:"type,required"` // Metadata for the response, check the presence of optional fields with the @@ -967,8 +967,8 @@ type MessageAttachmentToolFileSearchTool struct { } // Returns the unmodified JSON received from the API -func (r MessageAttachmentToolFileSearchTool) RawJSON() string { return r.JSON.raw } -func (r *MessageAttachmentToolFileSearchTool) UnmarshalJSON(data []byte) error { +func (r MessageAttachmentToolAssistantToolsFileSearchTypeOnly) RawJSON() string { return r.JSON.raw } +func (r *MessageAttachmentToolAssistantToolsFileSearchTypeOnly) UnmarshalJSON(data []byte) error { return apijson.UnmarshalRoot(data, r) } diff --git a/examples/image-generation/.DS_Store b/examples/image-generation/.DS_Store deleted file mode 100644 index 8833097cf8e0d123582bba44882630e5c115d48b..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 6148 zcmeHKOG*Pl5PhWq11exxwR3-kh;-y}ScFu-+Xb8?4ZNtMba|eif~h zk_;pR$v`rY4Ez)Wyt7rthmJWW1Ia)#@Wp_h4~42&13O1MIyhJhKpfF+LR%lono|O6 zVCTpgig+r~Qzcpq@pSr2#MQvg(bFN(d`MLOY+l5wbNyoBkm{IYGLQ^xGoZaMWuo{0 zIsY<)O}>TXkPIXP|CIq5%`RtCeqG$HJKw2yZJ}OKRWz