mirror of
https://github.com/openai/openai-go.git
synced 2026-04-01 17:17:14 +09:00
revert custom code applied to a generated branch (#410)
Co-authored-by: stainless-app[bot] <142633134+stainless-app[bot]@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
8504cab3c3
commit
2f6fb970c1
29
.github/workflows/create-releases.yml
vendored
29
.github/workflows/create-releases.yml
vendored
@@ -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}
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
BIN
examples/image-generation/.DS_Store
vendored
BIN
examples/image-generation/.DS_Store
vendored
Binary file not shown.
Reference in New Issue
Block a user