diff options
author | Michael Klimenko <mklimenko29@gmail.com> | 2024-01-27 15:25:55 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-27 15:25:55 +0100 |
commit | 35a2ee914308c85ab5cb576467381443ad23f0ac (patch) | |
tree | 72bd27fadddae5c8b82facf57373234822f574fc /examples/server/server.cpp | |
parent | ec903c034131848da9222536ff18da07ec0882a0 (diff) |
Remove unused data and add fixes (#5154)
* Remove unused data and add fixes
* Add missing file
* Address review comments
* Replace the scope of vq allocation
Diffstat (limited to 'examples/server/server.cpp')
-rw-r--r-- | examples/server/server.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/server/server.cpp b/examples/server/server.cpp index af63f2f6..f58a2aca 100644 --- a/examples/server/server.cpp +++ b/examples/server/server.cpp @@ -681,7 +681,7 @@ struct llama_server_context while ((pos = prompt.find(pattern, pos)) != std::string::npos) { size_t end_prefix = pos; pos += pattern.length(); - size_t end_pos = prompt.find("]", pos); + size_t end_pos = prompt.find(']', pos); if (end_pos != std::string::npos) { std::string image_id = prompt.substr(pos, end_pos - pos); |