Skip to content

Commit

Permalink
Release v0.13.5
Browse files Browse the repository at this point in the history
  • Loading branch information
fern-api[bot] committed Jan 16, 2025
1 parent 346f137 commit 6bbf9ed
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 2 deletions.
12 changes: 12 additions & 0 deletions .mock/definition/__package__.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3709,6 +3709,8 @@ types:
the request opted into with `expand_meta`.
properties:
usage: optional<MlModelUsage>
cost: optional<Price>
model_name: optional<string>
source:
openapi: openapi/openapi.yml
PromptNodeResult:
Expand Down Expand Up @@ -6265,6 +6267,16 @@ types:
docs: >-
If enabled, the Prompt Node FULFILLED events will include model host
usage tracking. This may increase latency for some model hosts.
cost:
type: optional<boolean>
docs: >-
If enabled, the Prompt Node FULFILLED events will include model host
cost tracking. This may increase latency for some model hosts.
model_name:
type: optional<boolean>
docs: >-
If enabled, the Prompt Node FULFILLED events will include model host
name
source:
openapi: openapi/openapi.yml
WorkflowNodeResultData:
Expand Down
17 changes: 17 additions & 0 deletions .mock/openapi/openapi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7531,6 +7531,13 @@ components:
allOf:
- $ref: '#/components/schemas/MLModelUsage'
nullable: true
cost:
allOf:
- $ref: '#/components/schemas/Price'
nullable: true
model_name:
type: string
nullable: true
PromptNodeResult:
type: object
description: A Node Result Event emitted from a Prompt Node.
Expand Down Expand Up @@ -11332,6 +11339,16 @@ components:
nullable: true
description: If enabled, the Prompt Node FULFILLED events will include model
host usage tracking. This may increase latency for some model hosts.
cost:
type: boolean
nullable: true
description: If enabled, the Prompt Node FULFILLED events will include model
host cost tracking. This may increase latency for some model hosts.
model_name:
type: boolean
nullable: true
description: If enabled, the Prompt Node FULFILLED events will include
model host name
WorkflowNodeResultData:
oneOf:
- $ref: '#/components/schemas/PromptNodeResult'
Expand Down
2 changes: 1 addition & 1 deletion core/request_option.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ func (r *RequestOptions) cloneHeader() http.Header {
headers := r.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.13.4")
headers.Set("X-Fern-SDK-Version", "v0.13.5")
return headers
}

Expand Down
8 changes: 7 additions & 1 deletion types.go
Original file line number Diff line number Diff line change
Expand Up @@ -9459,7 +9459,9 @@ func (p *PromptExecutionMeta) String() string {

// The subset of the metadata tracked by Vellum during prompt execution that the request opted into with `expand_meta`.
type PromptNodeExecutionMeta struct {
Usage *MlModelUsage `json:"usage,omitempty" url:"usage,omitempty"`
Usage *MlModelUsage `json:"usage,omitempty" url:"usage,omitempty"`
Cost *Price `json:"cost,omitempty" url:"cost,omitempty"`
ModelName *string `json:"model_name,omitempty" url:"model_name,omitempty"`

extraProperties map[string]interface{}
_rawJSON json.RawMessage
Expand Down Expand Up @@ -15247,6 +15249,10 @@ func (w *WorkflowExecutionWorkflowResultEvent) String() string {
type WorkflowExpandMetaRequest struct {
// If enabled, the Prompt Node FULFILLED events will include model host usage tracking. This may increase latency for some model hosts.
Usage *bool `json:"usage,omitempty" url:"usage,omitempty"`
// If enabled, the Prompt Node FULFILLED events will include model host cost tracking. This may increase latency for some model hosts.
Cost *bool `json:"cost,omitempty" url:"cost,omitempty"`
// If enabled, the Prompt Node FULFILLED events will include model host name
ModelName *bool `json:"model_name,omitempty" url:"model_name,omitempty"`

extraProperties map[string]interface{}
_rawJSON json.RawMessage
Expand Down

0 comments on commit 6bbf9ed

Please sign in to comment.