Skip to content

Commit

Permalink
Merge pull request #5 from WangHaoranRobin/robin_fork_master
Browse files Browse the repository at this point in the history
server: remove trailling white space
  • Loading branch information
WangHaoranRobin authored Jun 24, 2023
2 parents 6c76c31 + 02c96a4 commit 7f7046e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/server/server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 ((out[0] & 0x80) == 0x80) {
std::stringstream ss;
ss<< std::hex << (out[0] & 0xff);
ss<< std::hex << (out[0] & 0xff);
std::string res ( ss.str() );
out = "byte: \\x" + res;
}
Expand Down

0 comments on commit 7f7046e

Please sign in to comment.