Final. Works perfect.
This commit is contained in:
		
							parent
							
								
									276a6d0dbf
								
							
						
					
					
						commit
						40e85777b9
					
				
							
								
								
									
										3
									
								
								openai.h
									
									
									
									
									
								
							
							
						
						
									
										3
									
								
								openai.h
									
									
									
									
									
								
							| @ -115,7 +115,8 @@ char* openai_chat(const char* user_role, const char* message_content) { | |||||||
|         if (message_object == NULL) { |         if (message_object == NULL) { | ||||||
|             return NULL; |             return NULL; | ||||||
|         } |         } | ||||||
|         message_add_tool_call(message_object); |         message_add_object(message_object); | ||||||
|  |         //message_add_tool_call(message_object);
 | ||||||
|     } |     } | ||||||
|     const char* content_str = json_object_get_string(json_object_object_get(message_object, "content")); |     const char* content_str = json_object_get_string(json_object_object_get(message_object, "content")); | ||||||
|     return strdup(content_str); |     return strdup(content_str); | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user