Skip to content

Commit

Permalink
🌿 Fern Regeneration -- August 30, 2024 (#87)
Browse files Browse the repository at this point in the history
Co-authored-by: fern-api <115122769+fern-api[bot]@users.noreply.github.com>
  • Loading branch information
fern-api[bot] authored Aug 30, 2024
1 parent 9355749 commit abe8044
Show file tree
Hide file tree
Showing 3 changed files with 174 additions and 27 deletions.
21 changes: 9 additions & 12 deletions client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -306,10 +306,9 @@ func (c *Client) Chat(
return response, nil
}

// > 🚧 Warning
// >
// > This API is marked as "Legacy" and is no longer maintained. Follow the [migration guide](/docs/migrating-from-cogenerate-to-cochat) to start using the Chat API.
//
// <Warning>
// This API is marked as "Legacy" and is no longer maintained. Follow the [migration guide](/docs/migrating-from-cogenerate-to-cochat) to start using the Chat API.
// </Warning>
// Generates realistic text conditioned on a given input.
func (c *Client) GenerateStream(
ctx context.Context,
Expand Down Expand Up @@ -433,10 +432,9 @@ func (c *Client) GenerateStream(
)
}

// > 🚧 Warning
// >
// > This API is marked as "Legacy" and is no longer maintained. Follow the [migration guide](/docs/migrating-from-cogenerate-to-cochat) to start using the Chat API.
//
// <Warning>
// This API is marked as "Legacy" and is no longer maintained. Follow the [migration guide](/docs/migrating-from-cogenerate-to-cochat) to start using the Chat API.
// </Warning>
// Generates realistic text conditioned on a given input.
func (c *Client) Generate(
ctx context.Context,
Expand Down Expand Up @@ -950,10 +948,9 @@ func (c *Client) Classify(
return response, nil
}

// > 🚧 Warning
// >
// > This API is marked as "Legacy" and is no longer maintained. Follow the [migration guide](/docs/migrating-from-cogenerate-to-cochat) to start using the Chat API.
//
// <Warning>
// This API is marked as "Legacy" and is no longer maintained. Follow the [migration guide](/docs/migrating-from-cogenerate-to-cochat) to start using the Chat API.
// </Warning>
// Generates a summary in English for a given text.
func (c *Client) Summarize(
ctx context.Context,
Expand Down
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.10.0")
headers.Set("X-Fern-SDK-Version", "v2.11.0")
return headers
}

Expand Down
Loading

0 comments on commit abe8044

Please sign in to comment.