Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🌿 Fern Regeneration -- January 16, 2025 #233

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.0.2213")
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
Loading