mirror of
https://github.com/ollama/ollama.git
synced 2025-11-11 23:07:55 +01:00
fix binding build
This commit is contained in:
@@ -20,8 +20,12 @@
|
|||||||
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
// SOFTWARE.
|
// SOFTWARE.
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
|
||||||
extern "C" {
|
extern "C" {
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
|
|
||||||
extern unsigned char tokenCallback(void *, char *);
|
extern unsigned char tokenCallback(void *, char *);
|
||||||
@@ -58,4 +62,8 @@ void llama_binding_free_model(void *state);
|
|||||||
|
|
||||||
int llama_predict(void *params_ptr, void *state_pr, char *result, bool debug);
|
int llama_predict(void *params_ptr, void *state_pr, char *result, bool debug);
|
||||||
|
|
||||||
}
|
#ifdef __cplusplus
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user