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 }}
Repository navigation
server: Doubled http headers in /v1/chat/completions response in multiple models mode #17693
The /v1/chat/completions response http headers are doubled when I run llama-server in multiple models mode (with --models-dir parameter). For following request:
@ServeurpersoCom do you want to try implementing a fix? I think it should not be very complicated, probably add a field in server_http_res to indicate that we want to preserve headers from upstream
this can be a temporary patch as we will soon move to using this feature: yhirose/cpp-httplib#2281
@ServeurpersoCom do you want to try implementing a fix? I think it should not be very complicated, probably add a field in server_http_res to indicate that we want to preserve headers from upstream
this can be a temporary patch as we will soon move to using this feature: yhirose/cpp-httplib#2281
Activity
arkamar commentedon Dec 2, 2025
cc: @ngxson
ServeurpersoCom commentedon Dec 2, 2025
I try a minimal patch.
The proxy does the following:
this->content_type = "application/json; charset=utf-8" (default)
== DUPLICATE !!!
ngxson commentedon Dec 2, 2025
@ServeurpersoCom do you want to try implementing a fix? I think it should not be very complicated, probably add a field in
server_http_resto indicate that we want to preserve headers from upstreamthis can be a temporary patch as we will soon move to using this feature: yhirose/cpp-httplib#2281
ServeurpersoCom commentedon Dec 2, 2025
I can try now :D
server: fix duplicate HTTP headers in multiple models mode (#17698)
ggerganov commentedon Dec 3, 2025
Sorry for highjacking this issue, but not sure if this is a known issue:
With multiple-models, the total context is always displayed as 4096, regardless of how much is actually allocated:
Can file a separate issue if needed (cc @allozaur, @ServeurpersoCom)
allozaur commentedon Dec 3, 2025
Please do @ggerganov
server: fix duplicate HTTP headers in multiple models mode (ggml-org#…
server: fix duplicate HTTP headers in multiple models mode (#17698)
server: fix duplicate HTTP headers in multiple models mode (ggml-org#…
server: fix duplicate HTTP headers in multiple models mode (ggml-org#…
server: fix duplicate HTTP headers in multiple models mode (#17698)
server: fix duplicate HTTP headers in multiple models mode (ggml-org#…
server: fix duplicate HTTP headers in multiple models mode (ggml-org#…