Skip to content

Commit ac9e1d5

Browse files
Fix
1 parent 7e8fc45 commit ac9e1d5

File tree

3 files changed

+28
-3
lines changed

3 files changed

+28
-3
lines changed

.fernignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,5 @@ src/cohere/bedrock_client.py
1515
src/cohere/aws_client.py
1616
src/cohere/sagemaker_client.py
1717
src/cohere/client_v2.py
18-
mypy.ini
18+
mypy.ini
19+
src/cohere/aliases.py

src/cohere/aliases.py

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
from .v2 import (
2+
ContentDeltaV2ChatStreamResponse,
3+
ContentEndV2ChatStreamResponse,
4+
ContentStartV2ChatStreamResponse,
5+
MessageEndV2ChatStreamResponse,
6+
MessageStartV2ChatStreamResponse,
7+
ToolCallDeltaV2ChatStreamResponse,
8+
ToolCallEndV2ChatStreamResponse,
9+
ToolCallStartV2ChatStreamResponse,
10+
V2ChatStreamResponse,
11+
V2ChatResponse
12+
)
13+
14+
# alias classes
15+
StreamedChatResponseV2 = V2ChatStreamResponse
16+
MessageStartStreamedChatResponseV2 = MessageStartV2ChatStreamResponse
17+
MessageEndStreamedChatResponseV2 = MessageEndV2ChatStreamResponse
18+
ContentStartStreamedChatResponseV2 = ContentStartV2ChatStreamResponse
19+
ContentDeltaStreamedChatResponseV2 = ContentDeltaV2ChatStreamResponse
20+
ContentEndStreamedChatResponseV2 = ContentEndV2ChatStreamResponse
21+
ToolCallStartStreamedChatResponseV2 = ToolCallStartV2ChatStreamResponse
22+
ToolCallDeltaStreamedChatResponseV2 = ToolCallDeltaV2ChatStreamResponse
23+
ToolCallEndStreamedChatResponseV2 = ToolCallEndV2ChatStreamResponse
24+
ChatResponse = V2ChatResponse

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/6.0.0",
25+
"User-Agent": "cohere/5.16.1",
2626
"X-Fern-Language": "Python",
2727
"X-Fern-SDK-Name": "cohere",
28-
"X-Fern-SDK-Version": "6.0.0",
28+
"X-Fern-SDK-Version": "5.16.1",
2929
}
3030
if self._client_name is not None:
3131
headers["X-Client-Name"] = self._client_name

0 commit comments

Comments
 (0)