whitespace
This commit is contained in:
parent
8dea3b78b5
commit
559e43c447
1 changed files with 1 additions and 2 deletions
|
@ -433,7 +433,6 @@ struct llama_server_context {
|
|||
});
|
||||
return std::vector<float>(n_embd, 0.0f);
|
||||
}
|
||||
|
||||
const float * data = llama_get_embeddings(ctx);
|
||||
std::vector<float> embedding(data, data + n_embd);
|
||||
return embedding;
|
||||
|
@ -917,7 +916,7 @@ int main(int argc, char ** argv) {
|
|||
|
||||
svr.Post("/embedding", [&llama](const Request & req, Response & res) {
|
||||
const json body = json::parse(req.body);
|
||||
|
||||
|
||||
llama.rewind();
|
||||
llama_reset_timings(llama.ctx);
|
||||
llama.params.prompt = body.value("content", "");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue