Skip to content

Commit

Permalink
🌿 Fern Regeneration -- January 13, 2025 (#633)
Browse files Browse the repository at this point in the history
* SDK regeneration

* Fixes

* Fix failing tests

---------

Co-authored-by: fern-api <115122769+fern-api[bot]@users.noreply.github.com>
Co-authored-by: Billy Trend <[email protected]>
Co-authored-by: Jason Ozuzu <[email protected]>
  • Loading branch information
3 people authored Jan 14, 2025
1 parent c53ed10 commit e04d233
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "cohere"

[tool.poetry]
name = "cohere"
version = "5.13.7"
version = "5.13.8"
description = ""
readme = "README.md"
authors = []
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 @@ -24,7 +24,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.13.7",
"X-Fern-SDK-Version": "5.13.8",
}
if self._client_name is not None:
headers["X-Client-Name"] = self._client_name
Expand Down
4 changes: 2 additions & 2 deletions src/cohere/types/document.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ class Document(UncheckedBaseModel):
passed to the model.
"""

data: typing.Dict[str, str] = pydantic.Field()
data: typing.Dict[str, typing.Optional[typing.Any]] = pydantic.Field()
"""
A relevant documents that the model can cite to generate a more accurate reply. Each document is a string-string dictionary.
A relevant document that the model can cite to generate a more accurate reply. Each document is a string-any dictionary.
"""

id: typing.Optional[str] = pydantic.Field(default=None)
Expand Down
2 changes: 1 addition & 1 deletion tests/test_async_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ async def test_tool_use(self) -> None:
]

tool_parameters_response = await self.co.chat(
message="How good were the sales on September 29?",
message="How good were the sales on September 29 2023?",
tools=tools,
model="command-nightly",
preamble="""
Expand Down
2 changes: 1 addition & 1 deletion tests/test_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ def test_tool_use(self) -> None:
]

tool_parameters_response = co.chat(
message="How good were the sales on September 29?",
message="How good were the sales on September 29 2023?",
tools=tools,
model="command-nightly",
preamble="""
Expand Down

0 comments on commit e04d233

Please sign in to comment.