Transactions.

This commit is contained in:
retoor 2025-03-28 02:41:15 +01:00
parent 534fb6bfcf
commit cc1c6570e3
5 changed files with 4 additions and 3 deletions

2
chat.h
View File

@ -54,7 +54,7 @@ char *chat_json(const char *role, const char *message) {
}
json_object_object_add(root_object, "messages", message_list());
json_object_object_add(root_object, "max_tokens", json_object_new_int(prompt_max_tokens));
// json_object_object_add(root_object, "max_tokens", json_object_new_int(prompt_max_tokens));
json_object_object_add(root_object, "temperature", json_object_new_double(prompt_temperature));
return (char *)json_object_to_json_string_ext(root_object, JSON_C_TO_STRING_PRETTY);

2
r.h
View File

@ -3,7 +3,7 @@
#include "malloc.h"
#include <stdbool.h>
#include <string.h>
#include "utils.h"
#include "auth.h"
bool is_verbose = false;

BIN
rpylib.so

Binary file not shown.

View File

@ -8,7 +8,7 @@
#ifndef R_TOOLS_H
#define R_TOOLS_H
#include "r.h"
#include <stdio.h>
#include <json-c/json.h>
#include <json-c/json_object.h>

View File

@ -12,6 +12,7 @@
#ifndef UTILS_H
#define UTILS_H
#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>