34 lines
1018 B
C
34 lines
1018 B
C
|
|
// retoor <retoor@molodetz.nl>
|
||
|
|
|
||
|
|
#ifndef R_CONFIG_H
|
||
|
|
#define R_CONFIG_H
|
||
|
|
|
||
|
|
#include <stdbool.h>
|
||
|
|
|
||
|
|
typedef struct r_config_t *r_config_handle;
|
||
|
|
|
||
|
|
r_config_handle r_config_get_instance(void);
|
||
|
|
void r_config_destroy(void);
|
||
|
|
|
||
|
|
const char *r_config_get_api_url(r_config_handle cfg);
|
||
|
|
const char *r_config_get_models_url(r_config_handle cfg);
|
||
|
|
const char *r_config_get_model(r_config_handle cfg);
|
||
|
|
void r_config_set_model(r_config_handle cfg, const char *model);
|
||
|
|
|
||
|
|
const char *r_config_get_api_key(r_config_handle cfg);
|
||
|
|
const char *r_config_get_db_path(r_config_handle cfg);
|
||
|
|
|
||
|
|
bool r_config_use_tools(r_config_handle cfg);
|
||
|
|
bool r_config_use_strict(r_config_handle cfg);
|
||
|
|
bool r_config_is_verbose(r_config_handle cfg);
|
||
|
|
void r_config_set_verbose(r_config_handle cfg, bool verbose);
|
||
|
|
|
||
|
|
double r_config_get_temperature(r_config_handle cfg);
|
||
|
|
|
||
|
|
const char *r_config_get_session_id(r_config_handle cfg);
|
||
|
|
bool r_config_set_session_id(r_config_handle cfg, const char *session_id);
|
||
|
|
|
||
|
|
const char *r_config_get_system_message(r_config_handle cfg);
|
||
|
|
|
||
|
|
#endif
|