Skip to content
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

fix: change logic for finish reason processing #636

Merged
merged 1 commit into from
Nov 19, 2024

Conversation

mmikita95
Copy link
Contributor

An error in logic required finish_reason: "tool_calls" message to always have tool_calls: [...] object – which is possible in certain contexts, but not always true. This fix modifies the logic to detect the finish_reason independently.

@ramedina86 ramedina86 merged commit 202406d into writer:dev Nov 19, 2024
15 checks passed
ramedina86 added a commit that referenced this pull request Nov 19, 2024
commit 202406d
Merge: f7bd8e7 f571e48
Author: Ramiro Medina <[email protected]>
Date:   Tue Nov 19 10:18:54 2024 +0100

    Merge pull request #636 from mmikita95/fix-tool-calls-finish-processing

    fix: change logic for finish reason processing

commit f7bd8e7
Merge: b538673 0e379de
Author: Ramiro Medina <[email protected]>
Date:   Tue Nov 19 09:55:16 2024 +0100

    Merge pull request #637 from FabienArcellier/WF-80-clean-up-core

    chore: clean up core - WF-80

commit 0e379de
Author: Fabien Arcellier <[email protected]>
Date:   Mon Nov 18 21:56:20 2024 +0100

    chore: clean up core

    * chore: move dataframe dedicated method into core_df

commit a30d46b
Author: Fabien Arcellier <[email protected]>
Date:   Mon Nov 18 21:44:19 2024 +0100

    chore: clean up core

    * chore: move all functions that start with writer_event_handler_* to EventHandlerExecutor class as static

commit f571e48
Author: mmikita95 <[email protected]>
Date:   Mon Nov 18 13:15:56 2024 +0300

    fix: change logic for finish reason processing
@mmikita95 mmikita95 deleted the fix-tool-calls-finish-processing branch December 2, 2024 08:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants