feat: implement transaction processing with rollback and commit support
Add core transaction management including begin, commit, and rollback operations with proper state tracking and error handling for concurrent access patterns.
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
#include "malloc.h"
|
||||
#include <stdbool.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "utils.h"
|
||||
#include "auth.h"
|
||||
bool is_verbose = false;
|
||||
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user