mirror of
https://github.com/nomic-ai/gpt4all.git
synced 2024-10-01 01:06:10 -04:00
1b87aa2dbc
* fixed bindings to match new API Signed-off-by: Jerry Caligiure <jerry@noof.biz> * added update to readme Signed-off-by: Jerry Caligiure <jerry@noof.biz> --------- Signed-off-by: Jerry Caligiure <jerry@noof.biz> Co-authored-by: Jerry Caligiure <jerry@noof.biz>
20 lines
547 B
C
20 lines
547 B
C
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#include <stdbool.h>
|
|
|
|
void* load_model(const char *fname, int n_threads);
|
|
|
|
void model_prompt(const char *prompt, const char *prompt_template, int special, const char *fake_reply,
|
|
void *m, char* result, int repeat_last_n, float repeat_penalty, int n_ctx, int tokens,
|
|
int top_k, float top_p, float min_p, float temp, int n_batch,float ctx_erase);
|
|
|
|
void free_model(void *state_ptr);
|
|
|
|
extern unsigned char getTokenCallback(void *, char *);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|