Skip to content

Commit 0f8c04c

Browse files
committed
Inline debug functions.
1 parent f4454fe commit 0f8c04c

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

include/ollama.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,9 @@ namespace ollama
8080
static bool log_requests = false; // Log raw requests to the Ollama server. Useful when debugging.
8181
static bool log_replies = false; // Log raw replies from the Ollama server. Useful when debugging.
8282

83-
static void allow_exceptions(bool enable) {use_exceptions = enable;}
84-
static void show_requests(bool enable) {log_requests = enable;}
85-
static void show_replies(bool enable) {log_replies = enable;}
83+
inline void allow_exceptions(bool enable) {use_exceptions = enable;}
84+
inline void show_requests(bool enable) {log_requests = enable;}
85+
inline void show_replies(bool enable) {log_replies = enable;}
8686

8787
enum class message_type { generation, chat, embedding };
8888

singleheader/ollama.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34870,9 +34870,9 @@ namespace ollama
3487034870
static bool log_requests = false; // Log raw requests to the Ollama server. Useful when debugging.
3487134871
static bool log_replies = false; // Log raw replies from the Ollama server. Useful when debugging.
3487234872

34873-
static void allow_exceptions(bool enable) {use_exceptions = enable;}
34874-
static void show_requests(bool enable) {log_requests = enable;}
34875-
static void show_replies(bool enable) {log_replies = enable;}
34873+
inline void allow_exceptions(bool enable) {use_exceptions = enable;}
34874+
inline void show_requests(bool enable) {log_requests = enable;}
34875+
inline void show_replies(bool enable) {log_replies = enable;}
3487634876

3487734877
enum class message_type { generation, chat, embedding };
3487834878

0 commit comments

Comments
 (0)