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 8833097..0000000 Binary files a/examples/image-generation/.DS_Store and /dev/null differ