Skip to content

Commit

Permalink
fix(cpp): add missing files
Browse files Browse the repository at this point in the history
  • Loading branch information
jhen0409 committed Apr 25, 2024
1 parent 622ed9b commit 545a54f
Show file tree
Hide file tree
Showing 11 changed files with 28,227 additions and 2 deletions.
4 changes: 4 additions & 0 deletions android/src/main/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,13 @@ set(
${RNLLAMA_LIB_DIR}/ggml-quants.c
${RNLLAMA_LIB_DIR}/common.cpp
${RNLLAMA_LIB_DIR}/grammar-parser.cpp
${RNLLAMA_LIB_DIR}/json.hpp
${RNLLAMA_LIB_DIR}/json-schema-to-grammar.cpp
${RNLLAMA_LIB_DIR}/sampling.cpp
${RNLLAMA_LIB_DIR}/unicode-data.cpp
${RNLLAMA_LIB_DIR}/unicode.cpp
${RNLLAMA_LIB_DIR}/llama.cpp
${RNLLAMA_LIB_DIR}/sgemm.cpp
${RNLLAMA_LIB_DIR}/rn-llama.hpp
${CMAKE_SOURCE_DIR}/jni.cpp
)
Expand Down
764 changes: 764 additions & 0 deletions cpp/json-schema-to-grammar.cpp

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions cpp/json-schema-to-grammar.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#pragma once
#include "json.hpp"

std::string json_schema_to_grammar(const nlohmann::ordered_json& schema);
Loading

0 comments on commit 545a54f

Please sign in to comment.