-
Notifications
You must be signed in to change notification settings - Fork 164
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support models with non-standard
finish_reason
(#2229)
Some model launchers (TGI, sglang) may return non-standard `finish_reason` values, such as `"eos_token"` or `""`. This commit removes the strict parsing of `finish_reason` so that the OpenAI-compatible endpoint does not fail for these model launchers.
- Loading branch information
Showing
2 changed files
with
3 additions
and
6 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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