Skip to content
This repository was archived by the owner on Jul 4, 2025. It is now read-only.

Commit fbe3082

Browse files
committed
chore: add infereces namespace and http method
1 parent a777b3c commit fbe3082

File tree

2 files changed

+1131
-1203
lines changed

2 files changed

+1131
-1203
lines changed

controllers/llamaCPP.cc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
#include <thread>
77
#include <regex>
88

9+
using namespace inferences;
10+
911
std::string create_return_json(const std::string &id, const std::string &model,
1012
const std::string &content,
1113
Json::Value finish_reason = Json::Value()) {
@@ -35,7 +37,7 @@ std::string create_return_json(const std::string &id, const std::string &model,
3537
return Json::writeString(writer, root);
3638
}
3739

38-
void llamaCPP::asyncHandleHttpRequest(
40+
void llamaCPP::chatCompletion(
3941
const HttpRequestPtr &req,
4042
std::function<void(const HttpResponsePtr &)> &&callback) {
4143
const auto &jsonBody = req->getJsonObject();

0 commit comments

Comments
 (0)