Skip to content

Commit c670f49

Browse files
committed
SDK regeneration
1 parent 9a52a66 commit c670f49

11 files changed

Lines changed: 47 additions & 157 deletions

poetry.lock

Lines changed: 12 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name = "cohere"
33

44
[tool.poetry]
55
name = "cohere"
6-
version = "5.16.2"
6+
version = "5.16.3"
77
description = ""
88
readme = "README.md"
99
authors = []

src/cohere/__init__.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,6 @@
167167
NonStreamedChatResponse,
168168
OAuthAuthorizeResponse,
169169
ParseInfo,
170-
ReasoningEffort,
171170
RerankDocument,
172171
RerankRequestDocumentsItem,
173172
RerankResponse,
@@ -496,7 +495,6 @@
496495
"NotImplementedError",
497496
"OAuthAuthorizeResponse",
498497
"ParseInfo",
499-
"ReasoningEffort",
500498
"RerankDocument",
501499
"RerankRequestDocumentsItem",
502500
"RerankResponse",

src/cohere/base_client.py

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,6 @@ def chat_stream(
146146
*,
147147
message: str,
148148
accepts: typing.Optional[typing.Literal["text/event-stream"]] = None,
149-
raw_prompting: typing.Optional[bool] = OMIT,
150149
model: typing.Optional[str] = OMIT,
151150
preamble: typing.Optional[str] = OMIT,
152151
chat_history: typing.Optional[typing.Sequence[Message]] = OMIT,
@@ -187,12 +186,6 @@ def chat_stream(
187186
accepts : typing.Optional[typing.Literal["text/event-stream"]]
188187
Pass text/event-stream to receive the streamed response as server-sent events. The default is `\n` delimited events.
189188
190-
raw_prompting : typing.Optional[bool]
191-
When enabled, the user's prompt will be sent to the model without
192-
any pre-processing.
193-
194-
Compatible Deployments: Cohere Platform, Azure, AWS Sagemaker/Bedrock, Private Deployments
195-
196189
model : typing.Optional[str]
197190
The name of a compatible [Cohere model](https://docs.cohere.com/docs/models) or the ID of a [fine-tuned](https://docs.cohere.com/docs/chat-fine-tuning) model.
198191
@@ -414,7 +407,6 @@ def chat_stream(
414407
with self._raw_client.chat_stream(
415408
message=message,
416409
accepts=accepts,
417-
raw_prompting=raw_prompting,
418410
model=model,
419411
preamble=preamble,
420412
chat_history=chat_history,
@@ -447,7 +439,6 @@ def chat(
447439
*,
448440
message: str,
449441
accepts: typing.Optional[typing.Literal["text/event-stream"]] = None,
450-
raw_prompting: typing.Optional[bool] = OMIT,
451442
model: typing.Optional[str] = OMIT,
452443
preamble: typing.Optional[str] = OMIT,
453444
chat_history: typing.Optional[typing.Sequence[Message]] = OMIT,
@@ -487,12 +478,6 @@ def chat(
487478
accepts : typing.Optional[typing.Literal["text/event-stream"]]
488479
Pass text/event-stream to receive the streamed response as server-sent events. The default is `\n` delimited events.
489480
490-
raw_prompting : typing.Optional[bool]
491-
When enabled, the user's prompt will be sent to the model without
492-
any pre-processing.
493-
494-
Compatible Deployments: Cohere Platform, Azure, AWS Sagemaker/Bedrock, Private Deployments
495-
496481
model : typing.Optional[str]
497482
The name of a compatible [Cohere model](https://docs.cohere.com/docs/models) or the ID of a [fine-tuned](https://docs.cohere.com/docs/chat-fine-tuning) model.
498483
@@ -725,7 +710,6 @@ def chat(
725710
_response = self._raw_client.chat(
726711
message=message,
727712
accepts=accepts,
728-
raw_prompting=raw_prompting,
729713
model=model,
730714
preamble=preamble,
731715
chat_history=chat_history,
@@ -1602,7 +1586,6 @@ async def chat_stream(
16021586
*,
16031587
message: str,
16041588
accepts: typing.Optional[typing.Literal["text/event-stream"]] = None,
1605-
raw_prompting: typing.Optional[bool] = OMIT,
16061589
model: typing.Optional[str] = OMIT,
16071590
preamble: typing.Optional[str] = OMIT,
16081591
chat_history: typing.Optional[typing.Sequence[Message]] = OMIT,
@@ -1643,12 +1626,6 @@ async def chat_stream(
16431626
accepts : typing.Optional[typing.Literal["text/event-stream"]]
16441627
Pass text/event-stream to receive the streamed response as server-sent events. The default is `\n` delimited events.
16451628
1646-
raw_prompting : typing.Optional[bool]
1647-
When enabled, the user's prompt will be sent to the model without
1648-
any pre-processing.
1649-
1650-
Compatible Deployments: Cohere Platform, Azure, AWS Sagemaker/Bedrock, Private Deployments
1651-
16521629
model : typing.Optional[str]
16531630
The name of a compatible [Cohere model](https://docs.cohere.com/docs/models) or the ID of a [fine-tuned](https://docs.cohere.com/docs/chat-fine-tuning) model.
16541631
@@ -1878,7 +1855,6 @@ async def main() -> None:
18781855
async with self._raw_client.chat_stream(
18791856
message=message,
18801857
accepts=accepts,
1881-
raw_prompting=raw_prompting,
18821858
model=model,
18831859
preamble=preamble,
18841860
chat_history=chat_history,
@@ -1912,7 +1888,6 @@ async def chat(
19121888
*,
19131889
message: str,
19141890
accepts: typing.Optional[typing.Literal["text/event-stream"]] = None,
1915-
raw_prompting: typing.Optional[bool] = OMIT,
19161891
model: typing.Optional[str] = OMIT,
19171892
preamble: typing.Optional[str] = OMIT,
19181893
chat_history: typing.Optional[typing.Sequence[Message]] = OMIT,
@@ -1952,12 +1927,6 @@ async def chat(
19521927
accepts : typing.Optional[typing.Literal["text/event-stream"]]
19531928
Pass text/event-stream to receive the streamed response as server-sent events. The default is `\n` delimited events.
19541929
1955-
raw_prompting : typing.Optional[bool]
1956-
When enabled, the user's prompt will be sent to the model without
1957-
any pre-processing.
1958-
1959-
Compatible Deployments: Cohere Platform, Azure, AWS Sagemaker/Bedrock, Private Deployments
1960-
19611930
model : typing.Optional[str]
19621931
The name of a compatible [Cohere model](https://docs.cohere.com/docs/models) or the ID of a [fine-tuned](https://docs.cohere.com/docs/chat-fine-tuning) model.
19631932
@@ -2198,7 +2167,6 @@ async def main() -> None:
21982167
_response = await self._raw_client.chat(
21992168
message=message,
22002169
accepts=accepts,
2201-
raw_prompting=raw_prompting,
22022170
model=model,
22032171
preamble=preamble,
22042172
chat_history=chat_history,

src/cohere/core/client_wrapper.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@ def __init__(
2222

2323
def get_headers(self) -> typing.Dict[str, str]:
2424
headers: typing.Dict[str, str] = {
25-
"User-Agent": "cohere/5.16.2",
25+
"User-Agent": "cohere/5.16.3",
2626
"X-Fern-Language": "Python",
2727
"X-Fern-SDK-Name": "cohere",
28-
"X-Fern-SDK-Version": "5.16.2",
28+
"X-Fern-SDK-Version": "5.16.3",
2929
}
3030
if self._client_name is not None:
3131
headers["X-Client-Name"] = self._client_name

src/cohere/raw_base_client.py

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,6 @@ def chat_stream(
7474
*,
7575
message: str,
7676
accepts: typing.Optional[typing.Literal["text/event-stream"]] = None,
77-
raw_prompting: typing.Optional[bool] = OMIT,
7877
model: typing.Optional[str] = OMIT,
7978
preamble: typing.Optional[str] = OMIT,
8079
chat_history: typing.Optional[typing.Sequence[Message]] = OMIT,
@@ -115,12 +114,6 @@ def chat_stream(
115114
accepts : typing.Optional[typing.Literal["text/event-stream"]]
116115
Pass text/event-stream to receive the streamed response as server-sent events. The default is `\n` delimited events.
117116
118-
raw_prompting : typing.Optional[bool]
119-
When enabled, the user's prompt will be sent to the model without
120-
any pre-processing.
121-
122-
Compatible Deployments: Cohere Platform, Azure, AWS Sagemaker/Bedrock, Private Deployments
123-
124117
model : typing.Optional[str]
125118
The name of a compatible [Cohere model](https://docs.cohere.com/docs/models) or the ID of a [fine-tuned](https://docs.cohere.com/docs/chat-fine-tuning) model.
126119
@@ -329,7 +322,6 @@ def chat_stream(
329322
"v1/chat",
330323
method="POST",
331324
json={
332-
"raw_prompting": raw_prompting,
333325
"message": message,
334326
"model": model,
335327
"preamble": preamble,
@@ -542,7 +534,6 @@ def chat(
542534
*,
543535
message: str,
544536
accepts: typing.Optional[typing.Literal["text/event-stream"]] = None,
545-
raw_prompting: typing.Optional[bool] = OMIT,
546537
model: typing.Optional[str] = OMIT,
547538
preamble: typing.Optional[str] = OMIT,
548539
chat_history: typing.Optional[typing.Sequence[Message]] = OMIT,
@@ -582,12 +573,6 @@ def chat(
582573
accepts : typing.Optional[typing.Literal["text/event-stream"]]
583574
Pass text/event-stream to receive the streamed response as server-sent events. The default is `\n` delimited events.
584575
585-
raw_prompting : typing.Optional[bool]
586-
When enabled, the user's prompt will be sent to the model without
587-
any pre-processing.
588-
589-
Compatible Deployments: Cohere Platform, Azure, AWS Sagemaker/Bedrock, Private Deployments
590-
591576
model : typing.Optional[str]
592577
The name of a compatible [Cohere model](https://docs.cohere.com/docs/models) or the ID of a [fine-tuned](https://docs.cohere.com/docs/chat-fine-tuning) model.
593578
@@ -796,7 +781,6 @@ def chat(
796781
"v1/chat",
797782
method="POST",
798783
json={
799-
"raw_prompting": raw_prompting,
800784
"message": message,
801785
"model": model,
802786
"preamble": preamble,
@@ -2989,7 +2973,6 @@ async def chat_stream(
29892973
*,
29902974
message: str,
29912975
accepts: typing.Optional[typing.Literal["text/event-stream"]] = None,
2992-
raw_prompting: typing.Optional[bool] = OMIT,
29932976
model: typing.Optional[str] = OMIT,
29942977
preamble: typing.Optional[str] = OMIT,
29952978
chat_history: typing.Optional[typing.Sequence[Message]] = OMIT,
@@ -3030,12 +3013,6 @@ async def chat_stream(
30303013
accepts : typing.Optional[typing.Literal["text/event-stream"]]
30313014
Pass text/event-stream to receive the streamed response as server-sent events. The default is `\n` delimited events.
30323015
3033-
raw_prompting : typing.Optional[bool]
3034-
When enabled, the user's prompt will be sent to the model without
3035-
any pre-processing.
3036-
3037-
Compatible Deployments: Cohere Platform, Azure, AWS Sagemaker/Bedrock, Private Deployments
3038-
30393016
model : typing.Optional[str]
30403017
The name of a compatible [Cohere model](https://docs.cohere.com/docs/models) or the ID of a [fine-tuned](https://docs.cohere.com/docs/chat-fine-tuning) model.
30413018
@@ -3244,7 +3221,6 @@ async def chat_stream(
32443221
"v1/chat",
32453222
method="POST",
32463223
json={
3247-
"raw_prompting": raw_prompting,
32483224
"message": message,
32493225
"model": model,
32503226
"preamble": preamble,
@@ -3457,7 +3433,6 @@ async def chat(
34573433
*,
34583434
message: str,
34593435
accepts: typing.Optional[typing.Literal["text/event-stream"]] = None,
3460-
raw_prompting: typing.Optional[bool] = OMIT,
34613436
model: typing.Optional[str] = OMIT,
34623437
preamble: typing.Optional[str] = OMIT,
34633438
chat_history: typing.Optional[typing.Sequence[Message]] = OMIT,
@@ -3497,12 +3472,6 @@ async def chat(
34973472
accepts : typing.Optional[typing.Literal["text/event-stream"]]
34983473
Pass text/event-stream to receive the streamed response as server-sent events. The default is `\n` delimited events.
34993474
3500-
raw_prompting : typing.Optional[bool]
3501-
When enabled, the user's prompt will be sent to the model without
3502-
any pre-processing.
3503-
3504-
Compatible Deployments: Cohere Platform, Azure, AWS Sagemaker/Bedrock, Private Deployments
3505-
35063475
model : typing.Optional[str]
35073476
The name of a compatible [Cohere model](https://docs.cohere.com/docs/models) or the ID of a [fine-tuned](https://docs.cohere.com/docs/chat-fine-tuning) model.
35083477
@@ -3711,7 +3680,6 @@ async def chat(
37113680
"v1/chat",
37123681
method="POST",
37133682
json={
3714-
"raw_prompting": raw_prompting,
37153683
"message": message,
37163684
"model": model,
37173685
"preamble": preamble,

src/cohere/types/__init__.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,6 @@
173173
from .non_streamed_chat_response import NonStreamedChatResponse
174174
from .o_auth_authorize_response import OAuthAuthorizeResponse
175175
from .parse_info import ParseInfo
176-
from .reasoning_effort import ReasoningEffort
177176
from .rerank_document import RerankDocument
178177
from .rerank_request_documents_item import RerankRequestDocumentsItem
179178
from .rerank_response import RerankResponse
@@ -390,7 +389,6 @@
390389
"NonStreamedChatResponse",
391390
"OAuthAuthorizeResponse",
392391
"ParseInfo",
393-
"ReasoningEffort",
394392
"RerankDocument",
395393
"RerankRequestDocumentsItem",
396394
"RerankResponse",

src/cohere/types/chat_message_end_event_delta.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55
import pydantic
66
from ..core.pydantic_utilities import IS_PYDANTIC_V2
77
from ..core.unchecked_base_model import UncheckedBaseModel
8-
from .chat_finish_reason import ChatFinishReason
9-
from .usage import Usage
108

119

1210
class ChatMessageEndEventDelta(UncheckedBaseModel):
@@ -15,9 +13,6 @@ class ChatMessageEndEventDelta(UncheckedBaseModel):
1513
An error message if an error occurred during the generation.
1614
"""
1715

18-
finish_reason: typing.Optional[ChatFinishReason] = None
19-
usage: typing.Optional[Usage] = None
20-
2116
if IS_PYDANTIC_V2:
2217
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow") # type: ignore # Pydantic v2
2318
else:

src/cohere/types/reasoning_effort.py

Lines changed: 0 additions & 5 deletions
This file was deleted.

0 commit comments

Comments
 (0)