File tree Expand file tree Collapse file tree 3 files changed +28
-3
lines changed Expand file tree Collapse file tree 3 files changed +28
-3
lines changed Original file line number Diff line number Diff line change @@ -15,4 +15,5 @@ src/cohere/bedrock_client.py
15
15
src/cohere/aws_client.py
16
16
src/cohere/sagemaker_client.py
17
17
src/cohere/client_v2.py
18
- mypy.ini
18
+ mypy.ini
19
+ src/cohere/aliases.py
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change @@ -22,10 +22,10 @@ def __init__(
22
22
23
23
def get_headers (self ) -> typing .Dict [str , str ]:
24
24
headers : typing .Dict [str , str ] = {
25
- "User-Agent" : "cohere/6.0.0 " ,
25
+ "User-Agent" : "cohere/5.16.1 " ,
26
26
"X-Fern-Language" : "Python" ,
27
27
"X-Fern-SDK-Name" : "cohere" ,
28
- "X-Fern-SDK-Version" : "6.0.0 " ,
28
+ "X-Fern-SDK-Version" : "5.16.1 " ,
29
29
}
30
30
if self ._client_name is not None :
31
31
headers ["X-Client-Name" ] = self ._client_name
You can’t perform that action at this time.
0 commit comments