server: remove trailling white space

This commit is contained in:
Wang Haoran(Robin) 2023-06-24 07:54:26 -07:00
parent 6c76c31184
commit 02c96a4cbb

View file

@ -103,7 +103,7 @@ static std::string tokens_to_output_formatted_string(const llama_context * ctx,
// if first bit is 1, meaning it's a partial character // if first bit is 1, meaning it's a partial character
if ((out[0] & 0x80) == 0x80) { if ((out[0] & 0x80) == 0x80) {
std::stringstream ss; std::stringstream ss;
ss<< std::hex << (out[0] & 0xff); ss<< std::hex << (out[0] & 0xff);
std::string res ( ss.str() ); std::string res ( ss.str() );
out = "byte: \\x" + res; out = "byte: \\x" + res;
} }