2023-05-15 12:45:56 -04:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include <stdbool.h>
|
|
|
|
|
2023-06-01 08:37:14 -04:00
|
|
|
void* load_gpt4all_model(const char *fname, int n_threads);
|
2023-05-15 12:45:56 -04:00
|
|
|
|
2023-06-01 08:37:14 -04:00
|
|
|
void gpt4all_model_prompt( const char *prompt, void *m, char* result, int repeat_last_n, float repeat_penalty, int n_ctx, int tokens, int top_k,
|
2023-05-15 12:45:56 -04:00
|
|
|
float top_p, float temp, int n_batch,float ctx_erase);
|
|
|
|
|
2023-06-01 08:37:14 -04:00
|
|
|
void gpt4all_free_model(void *state_ptr);
|
2023-05-15 12:45:56 -04:00
|
|
|
|
|
|
|
extern unsigned char getTokenCallback(void *, char *);
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|