diff options
Diffstat (limited to 'include/importer.hpp')
| -rw-r--r-- | include/importer.hpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/include/importer.hpp b/include/importer.hpp index 2360d29..b432b45 100644 --- a/include/importer.hpp +++ b/include/importer.hpp @@ -62,18 +62,18 @@ namespace importer { typedef struct { - char* provider_name; - char* default_model; - bool (*upload_file)(char* file_path, char* file_id, size_t file_id_len); - bool (*query_with_file)(const char* query, size_t query_length, char* file_id, char** response); - bool (*batch_query_with_file)(const char** queries, size_t query_count, char* file_id, invoice* buffer, batch_query_response_handler response_handler); + const char* provider_name; + const char* default_model; + bool (*upload_file)(const char* file_path, char* file_id, size_t file_id_len); + bool (*query_with_file)(const char* query, size_t query_length, const char* file_id, char** response); + bool (*batch_query_with_file)(const char** queries, size_t query_count, const char* file_id, invoice* buffer, batch_query_response_handler response_handler); bool (*get_available_models)(model_list_request* buffer); } ai_provider_impl; typedef struct { - char* provider_name; - bool (*send_email)(char* sender, char* recipient, const char* subject, const char* text); + const char* provider_name; + bool (*send_email)(const char* sender, const char* recipient, const char* subject, const char* text); } email_provider_impl; const char* error_to_string(i_err error); |
