Avoid semantic blank Kimi bridge
ober
c2c7ea4149210a1d686afb525fbd856738c2ca19
--- a/src/jcode/provider/provider.ss +++ b/src/jcode/provider/provider.ss @@ -1601,7 +1601,7 @@ (hash-put! j "content" (if (message-tool-calls msg) "Calling tool." - "Tool call required."))) + " "))) j)) ;; Some models reject the `tools` parameter entirely (e.g. DeepSeek's --- a/test/run.ss +++ b/test/run.ss @@ -10234,7 +10234,7 @@ (and req (str-contains? req "\"content\":\"Calling tool.\"")) #t) (check! "Kimi K3 blank assistant history has non-empty content" - (and req (str-contains? req "\"content\":\"Tool call required.\"")) + (and req (str-contains? req "\"content\":\" \"")) #t))) (lambda () (tcp-close srv))))