Skip to content
Snippets Groups Projects
Unverified Commit 10b0836f authored by Logan's avatar Logan Committed by GitHub
Browse files

Make chat message to dict safer (#12526)

parent 6e9cf704
No related branches found
No related tags found
No related merge requests found
......@@ -63,7 +63,7 @@ class ChatMessage(BaseModel):
# ensure all additional_kwargs are serializable
msg = super().dict(**kwargs)
for key, value in msg["additional_kwargs"].items():
for key, value in msg.get("additional_kwargs", {}).items():
value = self._recursive_serialization(value)
if not isinstance(value, (str, int, float, bool, dict, list, type(None))):
raise ValueError(
......
......@@ -83,7 +83,7 @@ dirtyjson = "^1.0.8"
tqdm = "^4.66.1"
pillow = ">=9.0.0"
PyYAML = ">=6.0.1"
llamaindex-py-client = "^0.1.15"
llamaindex-py-client = "^0.1.16"
wrapt = "*"
[tool.poetry.extras]
......
......@@ -9,7 +9,7 @@ pants_version = "2.19.0"
remote_cache_read = true
remote_cache_write = true
remote_instance_name = "main"
remote_store_address = "grpc://44.204.50.6:9092"
remote_store_address = "grpc://framework-ci-balancer-1983728860.us-east-1.elb.amazonaws.com:9092"
unmatched_build_file_globs = "error"
[black]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment