#ifndef R_H
#define R_H
#include "malloc.h"
#include <stdbool.h>
#include <string.h>
#include "utils.h"
#include "auth.h"
bool is_verbose = false;

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);
}

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;
}


#endif