diff options
| author | Aldrik Ramaekers <aldrik@mailbox.org> | 2026-01-09 17:30:15 +0100 |
|---|---|---|
| committer | Aldrik Ramaekers <aldrik@mailbox.org> | 2026-01-09 17:30:15 +0100 |
| commit | 0821197bc1c57c756e737740d6a6de9c83314fae (patch) | |
| tree | 4963d2be78bd0978442a4b311889c6f2c5feaeee /include/importer.hpp | |
| parent | ccacaf0582bcea4a71ec8247ade0fd75e4ca99bf (diff) | |
fix warnings
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); |
