Skip to content

Commit

Permalink
🌿 Fern Regeneration -- May 14, 2024 (#75)
Browse files Browse the repository at this point in the history
* SDK regeneration

* Fix name

---------

Co-authored-by: fern-api <115122769+fern-api[bot]@users.noreply.github.com>
Co-authored-by: Billy Trend <billy@cohere.com>
  • Loading branch information
fern-api[bot] and billytrend-cohere authored May 14, 2024
1 parent ed1baa1 commit e3be8ce
Show file tree
Hide file tree
Showing 5 changed files with 229 additions and 114 deletions.
2 changes: 1 addition & 1 deletion core/request_option.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,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/cohere-ai/cohere-go/v2")
headers.Set("X-Fern-SDK-Version", "v2.7.4")
headers.Set("X-Fern-SDK-Version", "v2.8.0")
return headers
}

Expand Down
2 changes: 1 addition & 1 deletion datasets.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ func (d *DatasetsGetResponse) String() string {

type DatasetsGetUsageResponse struct {
// The total number of bytes used by the organization.
OrganizationUsage *string `json:"organization_usage,omitempty" url:"organization_usage,omitempty"`
OrganizationUsage *int64 `json:"organization_usage,omitempty" url:"organization_usage,omitempty"`

_rawJSON json.RawMessage
}
Expand Down
2 changes: 1 addition & 1 deletion finetuning/client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -620,7 +620,7 @@ func (c *Client) ListTrainingStepMetrics(
if options.BaseURL != "" {
baseURL = options.BaseURL
}
endpointURL := fmt.Sprintf(baseURL+"/"+"finetuning/finetuned-models/%v/metrics", finetunedModelId)
endpointURL := fmt.Sprintf(baseURL+"/"+"finetuning/finetuned-models/%v/training-step-metrics", finetunedModelId)

queryParams, err := core.QueryValues(request)
if err != nil {
Expand Down
4 changes: 2 additions & 2 deletions tests/sdk_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -400,11 +400,11 @@ func TestNewClient(t *testing.T) {
},
}

toolResults := make([]*cohere.ChatRequestToolResultsItem, 0)
toolResults := make([]*cohere.ToolResult, 0)

for _, toolCall := range toolsResponse.ToolCalls {
result := localTools[toolCall.Name](toolCall.Parameters["day"].(string))
toolResult := &cohere.ChatRequestToolResultsItem{
toolResult := &cohere.ToolResult{
Call: toolCall,
Outputs: *result,
}
Expand Down
Loading

0 comments on commit e3be8ce

Please sign in to comment.