Final. Works perfect.

This commit is contained in:
retoor 2025-03-20 17:00:13 +01:00
parent 276a6d0dbf
commit 40e85777b9

View File

@ -115,7 +115,8 @@ char* openai_chat(const char* user_role, const char* message_content) {
if (message_object == 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"));
return strdup(content_str);