Merge pull request #5 from WangHaoranRobin/robin_fork_master

server: remove trailling white space
This commit is contained in:
WangHaoranRobin 2023-06-24 07:55:15 -07:00 committed by GitHub
commit 7f7046ea01
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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;
} }