Formatting.
This commit is contained in:
@@ -1,38 +1,34 @@
|
||||
#ifndef R_H
|
||||
#define R_H
|
||||
#include "auth.h"
|
||||
#include "malloc.h"
|
||||
#include "utils.h"
|
||||
#include <stdbool.h>
|
||||
#include <string.h>
|
||||
#include "utils.h"
|
||||
#include "auth.h"
|
||||
bool is_verbose = false;
|
||||
|
||||
char * _model = NULL;
|
||||
char *_model = NULL;
|
||||
|
||||
#define DB_FILE "~/.r.db"
|
||||
static int prompt_max_tokens = 10000;
|
||||
#define PROMPT_TEMPERATURE 0.1
|
||||
|
||||
|
||||
|
||||
|
||||
void set_prompt_model(const char *model) {
|
||||
if(_model != NULL) {
|
||||
free(_model);
|
||||
}
|
||||
_model = strdup(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");
|
||||
const char *get_prompt_model() {
|
||||
if (auth_type != AUTH_TYPE_API_KEY) {
|
||||
if (_model == NULL) {
|
||||
_model = strdup("gpt-3.5-turbo");
|
||||
}
|
||||
return _model;
|
||||
} else if (_model == NULL) {
|
||||
_model = strdup("gpt-4o-mini");
|
||||
}
|
||||
return _model;
|
||||
}
|
||||
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user