Skip to content

Commit

Permalink
SDK regeneration
Browse files Browse the repository at this point in the history
  • Loading branch information
fern-api[bot] committed Jan 21, 2025
1 parent 601f221 commit a172992
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 22 deletions.
16 changes: 1 addition & 15 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 1 addition & 3 deletions 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.9"
version = "5.13.10"
description = ""
readme = "README.md"
authors = []
Expand Down Expand Up @@ -39,7 +39,6 @@ python = "^3.9"
fastavro = "^1.9.4"
httpx = ">=0.21.2"
httpx-sse = "0.4.0"
parameterized = "^0.9.0"
pydantic = ">= 1.9.2"
pydantic-core = "^2.18.2"
requests = "^2.0.0"
Expand All @@ -53,7 +52,6 @@ pytest = "^7.4.0"
pytest-asyncio = "^0.23.5"
python-dateutil = "^2.9.0"
types-python-dateutil = "^2.9.0.20240316"
parameterized = "^0.9.0"
ruff = "^0.5.6"

[tool.pytest.ini_options]
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.9",
"X-Fern-SDK-Version": "5.13.10",
}
if self._client_name is not None:
headers["X-Client-Name"] = self._client_name
Expand Down
8 changes: 8 additions & 0 deletions src/cohere/types/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@
from .detokenize_response import DetokenizeResponse
from .document import Document
from .document_content import DocumentContent
from .document_source import DocumentSource
from .embed_by_type_response import EmbedByTypeResponse
from .embed_by_type_response_embeddings import EmbedByTypeResponseEmbeddings
from .embed_floats_response import EmbedFloatsResponse
Expand Down Expand Up @@ -203,25 +204,32 @@
from .summarize_request_format import SummarizeRequestFormat
from .summarize_request_length import SummarizeRequestLength
from .summarize_response import SummarizeResponse
from .system_message import SystemMessage
from .system_message_content import SystemMessageContent
from .system_message_content_item import SystemMessageContentItem, TextSystemMessageContentItem
from .text_content import TextContent
from .text_response_format import TextResponseFormat
from .text_response_format_v2 import TextResponseFormatV2
from .tokenize_response import TokenizeResponse
from .tool import Tool
from .tool_call import ToolCall
from .tool_call_delta import ToolCallDelta
from .tool_call_v2 import ToolCallV2
from .tool_call_v2function import ToolCallV2Function
from .tool_content import DocumentToolContent, TextToolContent, ToolContent
from .tool_message import ToolMessage
from .tool_message_v2 import ToolMessageV2
from .tool_message_v2content import ToolMessageV2Content
from .tool_parameter_definitions_value import ToolParameterDefinitionsValue
from .tool_result import ToolResult
from .tool_source import ToolSource
from .tool_v2 import ToolV2
from .tool_v2function import ToolV2Function
from .update_connector_response import UpdateConnectorResponse
from .usage import Usage
from .usage_billed_units import UsageBilledUnits
from .usage_tokens import UsageTokens
from .user_message import UserMessage
from .user_message_content import UserMessageContent

__all__ = [
Expand Down
6 changes: 3 additions & 3 deletions src/cohere/types/tool_v2function.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# This file was auto-generated by Fern from our API Definition.

from ..core.unchecked_base_model import UncheckedBaseModel
import typing
import pydantic
import typing
from ..core.pydantic_utilities import IS_PYDANTIC_V2


Expand All @@ -11,7 +11,7 @@ class ToolV2Function(UncheckedBaseModel):
The function to be executed.
"""

name: typing.Optional[str] = pydantic.Field(default=None)
name: str = pydantic.Field()
"""
The name of the function.
"""
Expand All @@ -21,7 +21,7 @@ class ToolV2Function(UncheckedBaseModel):
The description of the function.
"""

parameters: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = pydantic.Field(default=None)
parameters: typing.Dict[str, typing.Optional[typing.Any]] = pydantic.Field()
"""
The parameters of the function as a JSON schema.
"""
Expand Down

0 comments on commit a172992

Please sign in to comment.