Skip to content

Add "weight" to "Message" and helper func to dump model for chat completion request#208

Merged
mayinghan merged 9 commits intomainfrom
message-support-extra-field
Sep 22, 2025
Merged

Add "weight" to "Message" and helper func to dump model for chat completion request#208
mayinghan merged 9 commits intomainfrom
message-support-extra-field

Conversation

@mayinghan
Copy link
Copy Markdown
Collaborator

@mayinghan mayinghan commented Sep 22, 2025

As titled.

Preserve "weight" set by user in their messages for fine tuning purpose. Also included a new helper function to dump Message to dictionary by filtering out fields that chat completion endpoint doesn't accept

@mayinghan mayinghan changed the title Add "weight" to "Message" and helper func to dump model for chat completion request Allow extra field in "Message" and helper func to dump model for chat completion request Sep 22, 2025
@mayinghan mayinghan changed the title Allow extra field in "Message" and helper func to dump model for chat completion request Add "weight "Message" and helper func to dump model for chat completion request Sep 22, 2025
@mayinghan mayinghan changed the title Add "weight "Message" and helper func to dump model for chat completion request Add "weight" to "Message" and helper func to dump model for chat completion request Sep 22, 2025
@mayinghan mayinghan merged commit 87fdc2c into main Sep 22, 2025
7 checks passed
@mayinghan mayinghan deleted the message-support-extra-field branch September 22, 2025 23:38
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.

1 participant