Skip to content

Commit f94935c

Browse files
Bump version to 1.0.2 for release
1 parent ef7a367 commit f94935c

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

cheshire_cat_api/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
""" # noqa: E501
1515

1616

17-
__version__ = "1.0.1"
17+
__version__ = "1.0.2"
1818

1919
from cheshire_cat_api.cat_client import CatClient
2020
from cheshire_cat_api.utils import Settings, WebSocketSettings

cheshire_cat_api/cat_client.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,12 +124,16 @@ def on_ws_close(self, ws, close_status_code: int, msg: str):
124124

125125
print(f"Connection closed: {msg}")
126126

127-
def send(self, message: str, prompt_settings: Dict = {}):
127+
def send(self, message: str, prompt_settings=None, user_id="user", **kwargs):
128128
"""Send a message to WebSocket server using a separate thread"""
129+
if prompt_settings is None:
130+
prompt_settings = {}
129131
if not self.is_closed:
130132
self._ws.send(json.dumps({
131133
"text": message,
132-
"prompt_settings": prompt_settings
134+
"prompt_settings": prompt_settings,
135+
"user_id": user_id,
136+
**kwargs
133137
}))
134138

135139
def close(self):

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "cheshire_cat_api"
3-
version = "1.0.1"
3+
version = "1.0.2"
44
description = "😸 Cheshire-Cat API Client"
55
authors = ["Chesire Cat AI"]
66
maintainers = [

0 commit comments

Comments
 (0)