Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
change
sglang
Commits
e2c31fca
"vscode:/vscode.git/clone" did not exist on "5432a3f5d5a1ac346af740d9b88bd5e14db7bb5a"
Unverified
Commit
e2c31fca
authored
May 09, 2024
by
Enrique Shockwave
Committed by
GitHub
May 09, 2024
Browse files
Include finish reason in meta info response (#415)
parent
d5de20a3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
python/sglang/srt/managers/router/model_rpc.py
python/sglang/srt/managers/router/model_rpc.py
+2
-0
No files found.
python/sglang/srt/managers/router/model_rpc.py
View file @
e2c31fca
...
...
@@ -586,6 +586,8 @@ class ModelRpcServer:
+
len
(
req
.
output_ids
)
-
req
.
prompt_tokens
,
"completion_tokens_wo_jump_forward"
:
req
.
completion_tokens_wo_jump_forward
,
"finish_reason"
:
req
.
finish_reason
,
"hit_stop_str"
:
req
.
hit_stop_str
,
}
if
req
.
return_logprob
:
(
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment