You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 1, 2024. It is now read-only.
Implement finish_reason as in the OpenAI API specification. Currently it's default to "length".
Motivation
It is useful for saving generation times and generate only until needed. It is especially useful for interactive prompt-based NLP tasks.
Note that the finish_reason field in the response should be under response["choices"][0]["finish_reason"] instead of response["choices"][0]["logprobs"]["finish_reason"] as implemented now in
🚀 Feature Request
Implement
finish_reason
as in the OpenAI API specification. Currently it's default to"length"
.Motivation
It is useful for saving generation times and generate only until needed. It is especially useful for interactive prompt-based NLP tasks.
Note that the
finish_reason
field in the response should be underresponse["choices"][0]["finish_reason"]
instead ofresponse["choices"][0]["logprobs"]["finish_reason"]
as implemented now inmetaseq/metaseq/service/responses.py
Line 33 in 51871bd
The text was updated successfully, but these errors were encountered: