Skip to content

Commit

Permalink
🌿 Fern Regeneration -- March 20, 2024 (#414)
Browse files Browse the repository at this point in the history
* SDK regeneration

* Update docs for 5.0.0

---------

Co-authored-by: fern-api <115122769+fern-api[bot]@users.noreply.github.com>
Co-authored-by: Billy Trend <[email protected]>
  • Loading branch information
fern-api[bot] and billytrend-cohere authored Mar 20, 2024
1 parent 37a2746 commit 372a9e9
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 21 deletions.
14 changes: 3 additions & 11 deletions 4.0.0-5.0.0-migration-guide.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## `cohere==4` to `cohere==5` migration guide

As we migrate from the handwritten manually-maintained sdk to our auto-generated sdk, there are some breaking changes that must be accomodated during migration. These should mostly improve the developer experience but thank you for bearing with us as we make these changes.
As we migrate from the handwritten manually-maintained sdk to our auto-generated sdk, there are some breaking changes that must be accommodated during migration. These should mostly improve the developer experience but thank you for bearing with us as we make these changes.

### Installation

Expand Down Expand Up @@ -30,29 +30,21 @@ for event in stream:

The following lists name the functions that are not in the new SDK and what their ongoing support status is.

#### Not yet supported

* loglikelihood
* wait_for_dataset
* wait_for_embed_job

#### No longer supported

* check_api_key
* loglikelihood
* batch_generate
* codebook
* batch_tokenize
* batch_detokenize
* check_api_key
* detect_language
* generate_feedback
* generate_preference_feedback
* create_cluster_job
* get_cluster_job
* list_cluster_jobs
* wait_for_cluster_job

#### Status unknown

* create_custom_model
* wait_for_custom_model
* get_custom_model
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@

The Cohere Python SDK provides access to the Cohere API from Python.

<!--- ## ✨🪩✨ Announcing Cohere's new Python SDK ✨🪩✨
## ✨🪩✨ Announcing Cohere's new Python SDK ✨🪩✨

We are very excited to publish this brand new Python SDK. We will continuously update this library with all of the latest features in our API. Please create issues where you have feedback so that we can continue to improve the developer experience! --->
We are very excited to publish this brand-new Python SDK. We will continuously update this library with all the latest features in our API. Please create issues where you have feedback so that we can continue to improve the developer experience!

## 5.0.0 alpha 🚀
## cohere==5.0.0 Migration Guide

We will release our brand new cohere-python SDK on the 18th of March 2024! If you'd like to get a head start by installing the alpha version, please go ahead and use pip install --pre --upgrade cohere. Thanks for your patience as we make breaking changes where necessary. If you have any issues using it, we will respond to github issues as soon as possible.
We have created a [migration guide](4.0.0-5.0.0-migration-guide.md) to help you through the process. If you have any questions, please feel free to open an issue and we will respond to you asap.

## Documentation

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "cohere"
version = "5.0.0a12"
version = "5.0.0"
description = ""
readme = "README.md"
authors = []
Expand Down
8 changes: 4 additions & 4 deletions src/cohere/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ def __init__(
list_datasets: Never = moved_function("list_datasets", ".datasets.list")
delete_dataset: Never = moved_function("delete_dataset", ".datasets.delete")
get_dataset_usage: Never = moved_function("get_dataset_usage", ".datasets.get_usage")
wait_for_dataset: Never = deprecated_function("wait_for_dataset")
wait_for_dataset: Never = moved_function("wait_for_dataset", ".wait")
_check_response: Never = deprecated_function("_check_response")
_request: Never = deprecated_function("_request")
create_cluster_job: Never = deprecated_function("create_cluster_job")
Expand All @@ -110,7 +110,7 @@ def __init__(
list_embed_jobs: Never = moved_function("list_embed_jobs", ".embed_jobs.list")
get_embed_job: Never = moved_function("get_embed_job", ".embed_jobs.get")
cancel_embed_job: Never = moved_function("cancel_embed_job", ".embed_jobs.cancel")
wait_for_embed_job: Never = deprecated_function("wait_for_embed_job")
wait_for_embed_job: Never = moved_function("wait_for_embed_job", ".wait")
create_custom_model: Never = deprecated_function("create_custom_model")
wait_for_custom_model: Never = deprecated_function("wait_for_custom_model")
_upload_dataset: Never = deprecated_function("_upload_dataset")
Expand Down Expand Up @@ -170,7 +170,7 @@ def __init__(
list_datasets: Never = moved_function("list_datasets", ".datasets.list")
delete_dataset: Never = moved_function("delete_dataset", ".datasets.delete")
get_dataset_usage: Never = moved_function("get_dataset_usage", ".datasets.get_usage")
wait_for_dataset: Never = deprecated_function("wait_for_dataset")
wait_for_dataset: Never = moved_function("wait_for_dataset", ".wait")
_check_response: Never = deprecated_function("_check_response")
_request: Never = deprecated_function("_request")
create_cluster_job: Never = deprecated_function("create_cluster_job")
Expand All @@ -181,7 +181,7 @@ def __init__(
list_embed_jobs: Never = moved_function("list_embed_jobs", ".embed_jobs.list")
get_embed_job: Never = moved_function("get_embed_job", ".embed_jobs.get")
cancel_embed_job: Never = moved_function("cancel_embed_job", ".embed_jobs.cancel")
wait_for_embed_job: Never = deprecated_function("wait_for_embed_job")
wait_for_embed_job: Never = moved_function("wait_for_embed_job", ".wait")
create_custom_model: Never = deprecated_function("create_custom_model")
wait_for_custom_model: Never = deprecated_function("wait_for_custom_model")
_upload_dataset: Never = deprecated_function("_upload_dataset")
Expand Down
2 changes: 1 addition & 1 deletion src/cohere/core/client_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def get_headers(self) -> typing.Dict[str, str]:
headers: typing.Dict[str, str] = {
"X-Fern-Language": "Python",
"X-Fern-SDK-Name": "cohere",
"X-Fern-SDK-Version": "5.0.0a12",
"X-Fern-SDK-Version": "5.0.0",
}
if self._client_name is not None:
headers["X-Client-Name"] = self._client_name
Expand Down

0 comments on commit 372a9e9

Please sign in to comment.