Transactions.
This commit is contained in:
		
							parent
							
								
									534fb6bfcf
								
							
						
					
					
						commit
						cc1c6570e3
					
				
							
								
								
									
										2
									
								
								chat.h
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								chat.h
									
									
									
									
									
								
							| @ -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
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								r.h
									
									
									
									
									
								
							| @ -3,7 +3,7 @@ | ||||
| #include "malloc.h" | ||||
| #include <stdbool.h> | ||||
| #include <string.h> | ||||
| 
 | ||||
| #include "utils.h" | ||||
| #include "auth.h" | ||||
| bool is_verbose = false; | ||||
| 
 | ||||
|  | ||||
							
								
								
									
										2
									
								
								tools.h
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								tools.h
									
									
									
									
									
								
							| @ -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> | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user