mirror of
https://github.com/nomic-ai/gpt4all
synced 2024-11-06 09:20:33 +00:00
18 lines
478 B
C
18 lines
478 B
C
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#include <stdbool.h>
|
|
|
|
void* load_gpt4all_model(const char *fname, int n_threads);
|
|
|
|
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,
|
|
float top_p, float temp, int n_batch,float ctx_erase);
|
|
|
|
void gpt4all_free_model(void *state_ptr);
|
|
|
|
extern unsigned char getTokenCallback(void *, char *);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif |