36 lines
648 B
C
Raw Normal View History

2025-03-22 03:15:49 +01:00
#ifndef R_H
#define R_H
2025-03-28 01:55:04 +01:00
#include "malloc.h"
2025-03-22 03:15:49 +01:00
#include <stdbool.h>
2025-03-28 01:55:04 +01:00
#include <string.h>
2025-03-28 02:41:15 +01:00
#include "utils.h"
2025-03-28 01:55:04 +01:00
#include "auth.h"
2025-03-22 03:15:49 +01:00
bool is_verbose = false;
2025-03-28 01:55:04 +01:00
char * _model = NULL;
void set_prompt_model(const char *model) {
if(_model != NULL) {
free(_model);
}
_model = strdup(model);
}
const char * get_prompt_model() {
if(auth_type != AUTH_TYPE_API_KEY) {
if(_model == NULL) {
_model = strdup("gpt-3.5-turbo");
}
} else if(_model == NULL) {
_model = strdup("gpt-4o-mini");
}
return _model;
}
static int prompt_max_tokens = 10000;
static double prompt_temperature = 0.1;
2025-03-22 03:15:49 +01:00
#endif