Skip to content

Commit

Permalink
Release v0.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
fern-api[bot] committed Feb 7, 2024
1 parent b8b394e commit 846d8b4
Show file tree
Hide file tree
Showing 5 changed files with 806 additions and 715 deletions.
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.2.2")
headers.Set("X-Fern-SDK-Version", "v0.3.0")
return headers
}
3 changes: 0 additions & 3 deletions deployments.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@ type DeploymentsListRequest struct {
// Which field to use when ordering the results.
Ordering *string `json:"-"`
// The current status of the deployment
//
// - `ACTIVE` - Active
// - `ARCHIVED` - Archived
Status *DeploymentsListRequestStatus `json:"-"`
}

Expand Down
8 changes: 8 additions & 0 deletions documents/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,14 @@ func (c *Client) PartialUpdate(ctx context.Context, id string, request *vellumcl
// Upload a document to be indexed and used for search.
//
// **Note:** Uses a base url of `https://documents.vellum.ai`.
//
// This is a multipart/form-data request. The `contents` field should be a file upload. It also expects a JSON body with the following fields:
//
// - `add_to_index_names: list[str]` - Optionally include the names of all indexes that you'd like this document to be included in
// - `external_id: str | None` - Optionally include an external ID for this document. This is useful if you want to re-upload the same document later when its contents change and would like it to be re-indexed.
// - `label: str` - A human-friendly name for this document. Typically the filename.
// - `keywords: list[str] | None` - Optionally include a list of keywords that'll be associated with this document. Used when performing keyword searches.
// - `metadata: dict[str, Any]` - A stringified JSON object containing any metadata associated with the document that you'd like to filter upon later.
func (c *Client) Upload(ctx context.Context, contents io.Reader, request *vellumclientgo.UploadDocumentBodyRequest) (*vellumclientgo.UploadDocumentResponse, error) {
baseURL := "https://documents.vellum.ai"
if c.baseURL != "" {
Expand Down
3 changes: 1 addition & 2 deletions sandboxes.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,5 @@ type UpsertSandboxScenarioRequestRequest struct {
// The inputs for the scenario
Inputs []*ScenarioInputRequest `json:"inputs,omitempty"`
// The id of the scenario to update. If none is provided, an id will be generated and a new scenario will be appended.
ScenarioId *string `json:"scenario_id,omitempty"`
MetricInputParams *SandboxMetricInputParamsRequest `json:"metric_input_params,omitempty"`
ScenarioId *string `json:"scenario_id,omitempty"`
}
Loading

0 comments on commit 846d8b4

Please sign in to comment.