Skip to content

Commit b1701fb

Browse files
SDK regeneration
1 parent 59022b7 commit b1701fb

File tree

42 files changed

+82
-1076
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+82
-1076
lines changed

.github/workflows/auto-merge-release.yml

Lines changed: 0 additions & 35 deletions
This file was deleted.

.github/workflows/release.yml

Lines changed: 0 additions & 34 deletions
This file was deleted.

adhoc/client.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import (
1212
option "github.com/vellum-ai/vellum-client-go/option"
1313
io "io"
1414
http "net/http"
15+
os "os"
1516
)
1617

1718
type Client struct {
@@ -22,8 +23,8 @@ type Client struct {
2223

2324
func NewClient(opts ...option.RequestOption) *Client {
2425
options := core.NewRequestOptions(opts...)
25-
if options.ApiVersion == nil || *options.ApiVersion == "" {
26-
options.ApiVersion = core.GetDefaultApiVersion()
26+
if options.ApiVersion == "" {
27+
options.ApiVersion = os.Getenv("VELLUM_API_VERSION")
2728
}
2829
return &Client{
2930
baseURL: options.BaseURL,

client/client.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ import (
3737
workspacesecrets "github.com/vellum-ai/vellum-client-go/workspacesecrets"
3838
io "io"
3939
http "net/http"
40+
os "os"
4041
)
4142

4243
type Client struct {
@@ -73,8 +74,8 @@ type Client struct {
7374

7475
func NewClient(opts ...option.RequestOption) *Client {
7576
options := core.NewRequestOptions(opts...)
76-
if options.ApiVersion == nil || *options.ApiVersion == "" {
77-
options.ApiVersion = core.GetDefaultApiVersion()
77+
if options.ApiVersion == "" {
78+
options.ApiVersion = os.Getenv("VELLUM_API_VERSION")
7879
}
7980
return &Client{
8081
baseURL: options.BaseURL,

containerimages/client.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import (
88
core "github.com/vellum-ai/vellum-client-go/core"
99
option "github.com/vellum-ai/vellum-client-go/option"
1010
http "net/http"
11+
os "os"
1112
)
1213

1314
type Client struct {
@@ -18,8 +19,8 @@ type Client struct {
1819

1920
func NewClient(opts ...option.RequestOption) *Client {
2021
options := core.NewRequestOptions(opts...)
21-
if options.ApiVersion == nil || *options.ApiVersion == "" {
22-
options.ApiVersion = core.GetDefaultApiVersion()
22+
if options.ApiVersion == "" {
23+
options.ApiVersion = os.Getenv("VELLUM_API_VERSION")
2324
}
2425
return &Client{
2526
baseURL: options.BaseURL,

core/request_option.go

Lines changed: 4 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,11 @@ package core
44

55
import (
66
fmt "fmt"
7-
"os"
7+
vellumclientgo "github.com/vellum-ai/vellum-client-go"
88
http "net/http"
99
url "net/url"
1010
)
1111

12-
// * `2024-10-25` - V2024_10_25
13-
// * `2025-07-30` - V2025_07_30
14-
type ApiVersionEnum string
15-
16-
const (
17-
ApiVersionEnumTwoThousandTwentyFour1025 ApiVersionEnum = "2024-10-25"
18-
ApiVersionEnumTwoThousandTwentyFive0730 ApiVersionEnum = "2025-07-30"
19-
)
20-
2112
// RequestOption adapts the behavior of the client or an individual request.
2213
type RequestOption interface {
2314
applyRequestOptions(*RequestOptions)
@@ -35,7 +26,7 @@ type RequestOptions struct {
3526
QueryParameters url.Values
3627
MaxAttempts uint
3728
ApiKey string
38-
ApiVersion *ApiVersionEnum
29+
ApiVersion *vellumclientgo.ApiVersionEnum
3930
}
4031

4132
// NewRequestOptions returns a new *RequestOptions value.
@@ -71,7 +62,7 @@ func (r *RequestOptions) cloneHeader() http.Header {
7162
headers := r.HTTPHeader.Clone()
7263
headers.Set("X-Fern-Language", "Go")
7364
headers.Set("X-Fern-SDK-Name", "github.com/vellum-ai/vellum-client-go")
74-
headers.Set("X-Fern-SDK-Version", "v1.14.4")
65+
headers.Set("X-Fern-SDK-Version", "v1.14.5")
7566
return headers
7667
}
7768

@@ -140,22 +131,9 @@ func (a *ApiKeyOption) applyRequestOptions(opts *RequestOptions) {
140131

141132
// ApiVersionOption implements the RequestOption interface.
142133
type ApiVersionOption struct {
143-
ApiVersion *ApiVersionEnum
134+
ApiVersion *vellumclientgo.ApiVersionEnum
144135
}
145136

146137
func (a *ApiVersionOption) applyRequestOptions(opts *RequestOptions) {
147138
opts.ApiVersion = a.ApiVersion
148139
}
149-
150-
func getEnvWithDefault(key, defaultValue string) string {
151-
if value := os.Getenv(key); value != "" {
152-
return value
153-
}
154-
return defaultValue
155-
}
156-
157-
func GetDefaultApiVersion() *ApiVersionEnum {
158-
envVersion := getEnvWithDefault("VELLUM_API_VERSION", "2025-07-30")
159-
apiVersion := ApiVersionEnum(envVersion)
160-
return &apiVersion
161-
}

deployments/client.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import (
1212
option "github.com/vellum-ai/vellum-client-go/option"
1313
io "io"
1414
http "net/http"
15+
os "os"
1516
)
1617

1718
type Client struct {
@@ -22,8 +23,8 @@ type Client struct {
2223

2324
func NewClient(opts ...option.RequestOption) *Client {
2425
options := core.NewRequestOptions(opts...)
25-
if options.ApiVersion == nil || *options.ApiVersion == "" {
26-
options.ApiVersion = core.GetDefaultApiVersion()
26+
if options.ApiVersion == "" {
27+
options.ApiVersion = os.Getenv("VELLUM_API_VERSION")
2728
}
2829
return &Client{
2930
baseURL: options.BaseURL,

documentindexes/client.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import (
88
core "github.com/vellum-ai/vellum-client-go/core"
99
option "github.com/vellum-ai/vellum-client-go/option"
1010
http "net/http"
11+
os "os"
1112
)
1213

1314
type Client struct {
@@ -18,8 +19,8 @@ type Client struct {
1819

1920
func NewClient(opts ...option.RequestOption) *Client {
2021
options := core.NewRequestOptions(opts...)
21-
if options.ApiVersion == nil || *options.ApiVersion == "" {
22-
options.ApiVersion = core.GetDefaultApiVersion()
22+
if options.ApiVersion == "" {
23+
options.ApiVersion = os.Getenv("VELLUM_API_VERSION")
2324
}
2425
return &Client{
2526
baseURL: options.BaseURL,

ee/automation/.nvmrc

Lines changed: 0 additions & 1 deletion
This file was deleted.

ee/automation/README.md

Lines changed: 0 additions & 11 deletions
This file was deleted.

0 commit comments

Comments
 (0)