chore: serialize tool calls messages with non-empty content#622
Merged
ramedina86 merged 4 commits intowriter:devfrom Nov 28, 2024
Merged
chore: serialize tool calls messages with non-empty content#622ramedina86 merged 4 commits intowriter:devfrom
ramedina86 merged 4 commits intowriter:devfrom
Conversation
Contributor
Author
|
I've decided to go for a simpler approach – as we need to display all messages with proper content, it should be the main "reason" behind the decision to include it into serialization. And, as long as there is no proper content, we shouldn't really care about other properties of the message, it doesn't get displayed either way. UPD: as we can see in |
FabienArcellier
approved these changes
Nov 18, 2024
ramedina86
added a commit
that referenced
this pull request
Nov 29, 2024
commit 0f8a653 Merge: c6bd286 5ea2448 Author: Ramiro Medina <64783088+ramedina86@users.noreply.github.com> Date: Thu Nov 28 17:54:43 2024 +0100 Merge pull request #638 from madeindjs/WF-45 feat(ui): use `BuilderSelect` for handlers + implement Design System - WF-45 commit c6bd286 Merge: c789209 4998ace Author: Ramiro Medina <64783088+ramedina86@users.noreply.github.com> Date: Thu Nov 28 10:03:36 2024 +0100 Merge pull request #654 from mmikita95/fix-pytest-warnings fix: register `set_token` mark to avoid pytest warnings commit c789209 Merge: 8774f9b 93a4f6e Author: Ramiro Medina <64783088+ramedina86@users.noreply.github.com> Date: Thu Nov 28 10:01:53 2024 +0100 Merge pull request #622 from mmikita95/chore-serialize-non-empty-content chore: serialize tool calls messages with non-empty content commit 8774f9b Merge: ec53f21 a8f42de Author: Ramiro Medina <64783088+ramedina86@users.noreply.github.com> Date: Wed Nov 27 09:30:02 2024 +0100 Merge pull request #646 from writer/WF-123-fix-examples-versions fix(WF-123): template apps have incorrect version after generation commit 4998ace Author: mmikita95 <hello@mmikita.me> Date: Wed Nov 27 10:20:04 2024 +0300 fix: register `set_token` mark to avoid pytest warnings commit 5ea2448 Author: Alexandre Rousseau <alexandre@rsseau.fr> Date: Mon Nov 18 21:33:27 2024 +0100 feat(ui): use `BuilderSelect` for handlers + implement Design System - WF-45 commit a8f42de Author: Mateusz Russak <mateusz@russak.biz> Date: Fri Nov 22 23:24:36 2024 +0100 fix: tests commit efcb814 Author: Mateusz Russak <mateusz@russak.biz> Date: Fri Nov 22 23:10:25 2024 +0100 fix: linter error commit a93b102 Author: Mateusz Russak <mateusz@russak.biz> Date: Fri Nov 22 22:16:46 2024 +0100 fix(WF-123): Fix writer versions in examples commit 93a4f6e Author: Mikita Makiej <157150795+mmikita95@users.noreply.github.com> Date: Mon Nov 18 12:47:27 2024 +0300 fix: also include empty non-`None` content as failing condition commit bb3683a Author: Mikita Makiej <157150795+mmikita95@users.noreply.github.com> Date: Mon Nov 18 11:46:52 2024 +0300 fix: unfinished docstring commit 2f96977 Author: mmikita95 <hello@mmikita.me> Date: Mon Nov 18 10:51:13 2024 +0300 chore: update `_is_serialized` commit d646732 Author: mmikita95 <hello@mmikita.me> Date: Fri Nov 8 17:34:02 2024 +0400 chore: serialize tool calls messages with non-empty content
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Enable serialization for messages that contain
tool_callsbut have non-emptycontent– in cases when model generates bothcontentandtool_callswithout separation.