Skip to content

Commit

Permalink
Release v0.4.1
Browse files Browse the repository at this point in the history
  • Loading branch information
fern-api[bot] committed Apr 25, 2024
1 parent a9d64bd commit a427589
Show file tree
Hide file tree
Showing 6 changed files with 47 additions and 912 deletions.
3 changes: 0 additions & 3 deletions client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import (
documents "github.com/vellum-ai/vellum-client-go/documents"
folderentities "github.com/vellum-ai/vellum-client-go/folderentities"
modelversions "github.com/vellum-ai/vellum-client-go/modelversions"
registeredprompts "github.com/vellum-ai/vellum-client-go/registeredprompts"
sandboxes "github.com/vellum-ai/vellum-client-go/sandboxes"
testsuiteruns "github.com/vellum-ai/vellum-client-go/testsuiteruns"
testsuites "github.com/vellum-ai/vellum-client-go/testsuites"
Expand All @@ -33,7 +32,6 @@ type Client struct {
Documents *documents.Client
FolderEntities *folderentities.Client
ModelVersions *modelversions.Client
RegisteredPrompts *registeredprompts.Client
Sandboxes *sandboxes.Client
TestSuiteRuns *testsuiteruns.Client
TestSuites *testsuites.Client
Expand All @@ -54,7 +52,6 @@ func NewClient(opts ...core.ClientOption) *Client {
Documents: documents.NewClient(opts...),
FolderEntities: folderentities.NewClient(opts...),
ModelVersions: modelversions.NewClient(opts...),
RegisteredPrompts: registeredprompts.NewClient(opts...),
Sandboxes: sandboxes.NewClient(opts...),
TestSuiteRuns: testsuiteruns.NewClient(opts...),
TestSuites: testsuites.NewClient(opts...),
Expand Down
2 changes: 1 addition & 1 deletion core/client_option.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,6 @@ func (c *ClientOptions) cloneHeader() http.Header {
headers := c.HTTPHeader.Clone()
headers.Set("X-Fern-Language", "Go")
headers.Set("X-Fern-SDK-Name", "github.com/vellum-ai/vellum-client-go")
headers.Set("X-Fern-SDK-Version", "v0.4.0")
headers.Set("X-Fern-SDK-Version", "v0.4.1")
return headers
}
23 changes: 0 additions & 23 deletions errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,29 +30,6 @@ func (b *BadRequestError) Unwrap() error {
return b.APIError
}

type ConflictError struct {
*core.APIError
Body *RegisterPromptErrorResponse
}

func (c *ConflictError) UnmarshalJSON(data []byte) error {
var body *RegisterPromptErrorResponse
if err := json.Unmarshal(data, &body); err != nil {
return err
}
c.StatusCode = 409
c.Body = body
return nil
}

func (c *ConflictError) MarshalJSON() ([]byte, error) {
return json.Marshal(c.Body)
}

func (c *ConflictError) Unwrap() error {
return c.APIError
}

type ForbiddenError struct {
*core.APIError
Body interface{}
Expand Down
34 changes: 0 additions & 34 deletions registered_prompts.go

This file was deleted.

93 changes: 0 additions & 93 deletions registeredprompts/client.go

This file was deleted.

Loading

0 comments on commit a427589

Please sign in to comment.