diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 08e82c45..7e56fe29 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.1.0-alpha.15" + ".": "0.1.0-alpha.16" } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index b8812afb..8863756b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 0.1.0-alpha.16 (2024-09-10) + +Full Changelog: [v0.1.0-alpha.15...v0.1.0-alpha.16](https://github.com/openai/openai-go/compare/v0.1.0-alpha.15...v0.1.0-alpha.16) + +### Bug Fixes + +* **requestconfig:** copy over more fields when cloning ([#44](https://github.com/openai/openai-go/issues/44)) ([6e02130](https://github.com/openai/openai-go/commit/6e02130c086c21e7f0895d18d6ed98fefb56f4d0)) + ## 0.1.0-alpha.15 (2024-09-05) Full Changelog: [v0.1.0-alpha.14...v0.1.0-alpha.15](https://github.com/openai/openai-go/compare/v0.1.0-alpha.14...v0.1.0-alpha.15) diff --git a/README.md b/README.md index fbdf195a..a344e8fe 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.15' +go get -u 'github.com/openai/openai-go@v0.1.0-alpha.16' ``` diff --git a/internal/requestconfig/requestconfig.go b/internal/requestconfig/requestconfig.go index 3b5a1147..ae8e1e96 100644 --- a/internal/requestconfig/requestconfig.go +++ b/internal/requestconfig/requestconfig.go @@ -467,10 +467,16 @@ func (cfg *RequestConfig) Clone(ctx context.Context) *RequestConfig { return nil } new := &RequestConfig{ - MaxRetries: cfg.MaxRetries, - Context: ctx, - Request: req, - HTTPClient: cfg.HTTPClient, + MaxRetries: cfg.MaxRetries, + RequestTimeout: cfg.RequestTimeout, + Context: ctx, + Request: req, + BaseURL: cfg.BaseURL, + HTTPClient: cfg.HTTPClient, + Middlewares: cfg.Middlewares, + APIKey: cfg.APIKey, + Organization: cfg.Organization, + Project: cfg.Project, } return new diff --git a/internal/version.go b/internal/version.go index 13b9ceb3..f5789720 100644 --- a/internal/version.go +++ b/internal/version.go @@ -2,4 +2,4 @@ package internal -const PackageVersion = "0.1.0-alpha.15" // x-release-please-version +const PackageVersion = "0.1.0-alpha.16" // x-release-please-version