Update.
This commit is contained in:
@@ -1,8 +1,35 @@
|
||||
#ifndef R_H
|
||||
#define R_H
|
||||
#include "malloc.h"
|
||||
#include <stdbool.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "auth.h"
|
||||
bool is_verbose = false;
|
||||
|
||||
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;
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user