Skip to content
Closed
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
2 changes: 1 addition & 1 deletion .fern/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -80,5 +80,5 @@
]
},
"originGitCommit": "7ffcb80a5edaf952524b88ad8960151e148ff39b",
"sdkVersion": "5.21.0"
"sdkVersion": "5.20.8"
}
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ dynamic = ["version"]

[tool.poetry]
name = "cohere"
version = "5.21.0"
version = "5.20.8"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SDK version downgraded from 5.21.0 to 5.20.8

High Severity

The sdkVersion is being downgraded from 5.21.0 to 5.20.8 across all three files. Since 5.20.8 is semantically lower than the existing 5.21.0, this is a version regression. If published to PyPI, users with 5.21.0 already installed would not see this as an upgrade, and dependency resolvers may skip it. The User-Agent and X-Fern-SDK-Version headers would also report an older version, making server-side analytics and debugging misleading.

Additional Locations (2)
Fix in Cursor Fix in Web

description = ""
readme = "README.md"
authors = []
Expand Down
4 changes: 2 additions & 2 deletions src/cohere/core/client_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,12 @@ def get_headers(self) -> typing.Dict[str, str]:
import platform

headers: typing.Dict[str, str] = {
"User-Agent": "cohere/5.21.0",
"User-Agent": "cohere/5.20.8",
"X-Fern-Language": "Python",
"X-Fern-Runtime": f"python/{platform.python_version()}",
"X-Fern-Platform": f"{platform.system().lower()}/{platform.release()}",
"X-Fern-SDK-Name": "cohere",
"X-Fern-SDK-Version": "5.21.0",
"X-Fern-SDK-Version": "5.20.8",
**(self.get_custom_headers() or {}),
}
if self._client_name is not None:
Expand Down
Loading