Skip to content

Commit ce961a3

Browse files
committed
some ci fixes
1 parent 9035978 commit ce961a3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

examples/server/server.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ std::vector<uint8_t> base64_decode(std::string const& encoded_string) {
7878
int i = 0;
7979
int j = 0;
8080
int in_ = 0;
81-
unsigned char char_array_4[4], char_array_3[3];
81+
uint8_t char_array_4[4], char_array_3[3];
8282
std::vector<uint8_t> ret;
8383
while (in_len-- && ( encoded_string[in_] != '=') && is_base64(encoded_string[in_])) {
8484
char_array_4[i++] = encoded_string[in_]; in_++;
@@ -884,7 +884,7 @@ struct llama_server_context
884884

885885
// append prefix of next image
886886
batch.n_tokens = 0;
887-
const auto json_prompt = (image_idx >= slot.images.size()) ?
887+
const auto json_prompt = (image_idx >= slot.images.size()) ?
888888
slot.params.input_suffix : // no more images, then process suffix prompt
889889
(json)(slot.images[image_idx].prefix_prompt);
890890
std::vector<llama_token> append_tokens = tokenize(json_prompt, true); // has next image
@@ -1818,7 +1818,7 @@ static void parse_options_completion(const json &body, llama_client_slot* slot,
18181818
slot->images.push_back(img_sl);
18191819
}
18201820
// process prompt
1821-
// example: system prompt <img-102> user <img-103> describe <img-134> -> [{id: 102, prefix: 'system prompt '}, {id: 103, prefix: ' user '}, {id: 134, prefix: ' describe '}]}
1821+
// example: system prompt [img-102] user [img-103] describe [img-134] -> [{id: 102, prefix: 'system prompt '}, {id: 103, prefix: ' user '}, {id: 134, prefix: ' describe '}]}
18221822
if(slot->images.size() > 0 && !slot->prompt.is_array()) {
18231823
std::string prompt = slot->prompt.get<std::string>();
18241824
size_t pos = 0, begin_prefix = 0;

0 commit comments

Comments
 (0)