-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: remove everything related to ChatMessage
and Tool
#169
base: main
Are you sure you want to change the base?
Conversation
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
Pull Request Test Coverage Report for Build 12833107261Details
💛 - Coveralls |
@@ -53,18 +52,11 @@ dependencies = [ | |||
|
|||
[tool.hatch.envs.test] | |||
extra-dependencies = [ | |||
"transformers<4.46.0", # https://github.com/huggingface/transformers/issues/34370 | |||
"transformers>=4.47.0, <4.48.0", # https://github.com/huggingface/transformers/issues/35639 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
bug in transformers
], | ||
"tools_strict": True, | ||
}, | ||
} | ||
|
||
def test_to_dict_with_lambda_streaming_callback(self, monkeypatch): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we no longer allow serialization of lambdas
@@ -733,7 +733,7 @@ def run(self, prompt_source: List[ChatMessage]): | |||
class MessageMerger: | |||
@component.output_types(merged_message=str) | |||
def run(self, messages: List[ChatMessage], metadata: dict = None): | |||
return {"merged_message": "\n".join(t.content for t in messages)} | |||
return {"merged_message": "\n".join(t.text for t in messages)} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
new ChatMessage
API
@@ -1,276 +0,0 @@ | |||
# SPDX-FileCopyrightText: 2022-present deepset GmbH <info@deepset.ai> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this was only implemented to support the new ChatMessage
(now integrated in Haystack)
Related Issues
ChatMessage
to Haystack haystack#8583 andProposed Changes:
ChatMessage
andTool
work has been migrated to Haystack and core-integrations, remove everything related to this experimentHow did you test it?
CI
Checklist
fix:
,feat:
,build:
,chore:
,ci:
,docs:
,style:
,refactor:
,perf:
,test:
.