]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commitdiff
Server: log when converting requests to chat completions format (#19457)
author손희준 <redacted>
Mon, 9 Feb 2026 15:22:57 +0000 (00:22 +0900)
committerGitHub <redacted>
Mon, 9 Feb 2026 15:22:57 +0000 (16:22 +0100)
* Log converting requests

* Print as debug instead of info [no ci]

---------

Co-authored-by: openingnow <>
tools/server/server-context.cpp

index 8ec84513399155fafb11639b42bc0bf6281d560f..ceafcac179c58358da9f022e62034185ec552c56 100644 (file)
@@ -3584,6 +3584,8 @@ void server_routes::init_routes() {
         auto res = create_response();
         std::vector<raw_buffer> files;
         json body = convert_responses_to_chatcmpl(json::parse(req.body));
+        SRV_DBG("%s\n", "Request converted: OpenAI Responses -> OpenAI Chat Completions");
+        SRV_DBG("converted request: %s\n", body.dump().c_str());
         json body_parsed = oaicompat_chat_params_parse(
             body,
             meta->chat_params,
@@ -3600,6 +3602,8 @@ void server_routes::init_routes() {
         auto res = create_response();
         std::vector<raw_buffer> files;
         json body = convert_anthropic_to_oai(json::parse(req.body));
+        SRV_DBG("%s\n", "Request converted: Anthropic -> OpenAI Chat Completions");
+        SRV_DBG("converted request: %s\n", body.dump().c_str());
         json body_parsed = oaicompat_chat_params_parse(
             body,
             meta->chat_params,
@@ -3616,6 +3620,8 @@ void server_routes::init_routes() {
         auto res = create_response();
         std::vector<raw_buffer> files;
         json body = convert_anthropic_to_oai(json::parse(req.body));
+        SRV_DBG("%s\n", "Request converted: Anthropic -> OpenAI Chat Completions");
+        SRV_DBG("converted request: %s\n", body.dump().c_str());
         json body_parsed = oaicompat_chat_params_parse(
             body,
             meta->chat_params,