mirror of
https://github.com/LostRuins/koboldcpp.git
synced 2026-09-19 09:15:18 +02:00
can build llama server now
This commit is contained in:
@@ -730,7 +730,7 @@ otherarch/sdcpp/thirdparty/zip.o: otherarch/sdcpp/thirdparty/zip.c
|
||||
|
||||
OBJS_SDTYPE := otherarch/sdcpp/sdtype_adapter.o $(OBJS_SDCOMMON)
|
||||
|
||||
LLAMASERVER_SRCS := tools/server/main.cpp tools/server/server.cpp tools/server/server-chat.cpp tools/server/server-common.cpp tools/server/server-context.cpp tools/server/server-http.cpp tools/server/server-models.cpp tools/server/server-queue.cpp tools/server/server-task.cpp tools/server/server-tools.cpp
|
||||
LLAMASERVER_SRCS := tools/server/main.cpp tools/server/server.cpp tools/server/server-chat.cpp tools/server/server-common.cpp tools/server/server-context.cpp tools/server/server-http.cpp tools/server/server-models.cpp tools/server/server-queue.cpp tools/server/server-task.cpp tools/server/server-tools.cpp tools/server/ui.cpp
|
||||
LLAMASERVER_COMMON_SRCS := common/arg.cpp common/chat.cpp common/preset.cpp common/download.cpp vendor/cpp-httplib/httplib.cpp
|
||||
LLAMASERVER_CXXFLAGS := -I./tools/mtmd
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#include "common.h"
|
||||
#include "server-http.h"
|
||||
#include "server-common.h"
|
||||
// #include "ui.h"
|
||||
#include "ui.h"
|
||||
|
||||
#include <cpp-httplib/httplib.h>
|
||||
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
#include "ui.h"
|
||||
|
||||
const llama_ui_asset * llama_ui_find_asset(const std::string &) {
|
||||
return nullptr;
|
||||
}
|
||||
const std::array<llama_ui_asset, 0> & llama_ui_get_assets() {
|
||||
static const std::array<llama_ui_asset, 0> empty{};
|
||||
return empty;
|
||||
}
|
||||
bool llama_ui_use_gzip() { return false; }
|
||||
@@ -0,0 +1,16 @@
|
||||
#pragma once
|
||||
|
||||
#include <array>
|
||||
#include <string>
|
||||
|
||||
struct llama_ui_asset {
|
||||
std::string name;
|
||||
const unsigned char * data;
|
||||
std::size_t size;
|
||||
std::string etag;
|
||||
std::string type;
|
||||
};
|
||||
|
||||
const llama_ui_asset * llama_ui_find_asset(const std::string & name);
|
||||
bool llama_ui_use_gzip();
|
||||
const std::array<llama_ui_asset, 0> & llama_ui_get_assets();
|
||||
Reference in New Issue
Block a user