Skip to content

Commit df170c8

Browse files
authored
Webui improvement (#481)
* update webui * add token/s in webui * add webui files * fix webui first message disappear in some browser * add missing html files --------- Co-authored-by: firecoperana <firecoperana>
1 parent 9e567e3 commit df170c8

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

60 files changed

+12299
-1535
lines changed

examples/server/CMakeLists.txt

Lines changed: 6 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -15,21 +15,8 @@ set(TARGET_SRCS
1515
httplib.h
1616
)
1717
set(PUBLIC_ASSETS
18-
colorthemes.css
19-
style.css
20-
theme-beeninorder.css
21-
theme-ketivah.css
22-
theme-mangotango.css
23-
theme-playground.css
24-
theme-polarnight.css
25-
theme-snowstorm.css
26-
index.html
27-
index-new.html
28-
index.js
29-
completion.js
30-
system-prompts.js
31-
prompt-formats.js
32-
json-schema-to-grammar.mjs
18+
index.html.gz
19+
loading.html
3320
)
3421

3522
foreach(asset ${PUBLIC_ASSETS})
@@ -41,6 +28,8 @@ foreach(asset ${PUBLIC_ASSETS})
4128
OUTPUT "${output}"
4229
COMMAND "${CMAKE_COMMAND}" "-DINPUT=${input}" "-DOUTPUT=${output}" -P "${PROJECT_SOURCE_DIR}/scripts/xxd.cmake"
4330
)
31+
set_source_files_properties(${output} PROPERTIES GENERATED TRUE)
32+
4433
endforeach()
4534

4635
add_executable(${TARGET} ${TARGET_SRCS})
@@ -49,6 +38,7 @@ target_compile_definitions(${TARGET} PRIVATE
4938
SERVER_VERBOSE=$<BOOL:${LLAMA_SERVER_VERBOSE}>
5039
)
5140

41+
target_include_directories(${TARGET} PRIVATE ${CMAKE_SOURCE_DIR})
5242
target_link_libraries(${TARGET} PRIVATE common ${CMAKE_THREAD_LIBS_INIT})
5343

5444
if (LLAMA_SERVER_SSL)
@@ -61,4 +51,4 @@ if (WIN32)
6151
TARGET_LINK_LIBRARIES(${TARGET} PRIVATE ws2_32)
6252
endif()
6353

64-
target_compile_features(${TARGET} PRIVATE cxx_std_11)
54+
target_compile_features(${TARGET} PRIVATE cxx_std_17)

0 commit comments

Comments
 (0)