-
Notifications
You must be signed in to change notification settings - Fork 27
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
remove broken stop word detection, rely on server side implementation #63
Conversation
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.
I see some logic involving is_stop in _aggregate_msgs() which can be removed as we are not making it part of postprocessing
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.
lgtm, thanks
e17aa91
to
9696e9d
Compare
@raspawar ptal. i removed extraneous stop params. the is_stopped is used in streaming. |
9696e9d
to
f0c0b48
Compare
msg, is_stopped = self._aggregate_msgs(msg_list) | ||
msg, is_stopped = self._early_stop_msg(msg, is_stopped, stop=stop) | ||
return msg, is_stopped | ||
return self._aggregate_msgs(self._process_response(response)) |
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.
is this logic needed in _aggredate_msgs?
is_stopped = msg.get("finish_reason", "") == "stop"
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.
it's used in stream processing
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.
ok
remove the client side stop word detection and rely on server side implementation
two issues with client side implementation -
find(...) + 1
)this simplifies the output post-processing, which moves us toward using standard post-processing tools.