Skip to content

Commit 99738dd

Browse files
authored
Merge pull request #11 from jmont-dev/tool-support
Do not provide format as this breaks chat completions with some models.
2 parents 58343b1 + c0360d9 commit 99738dd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Diff for: include/ollama.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ namespace ollama
250250
(*this)["stream"] = stream;
251251

252252
if (options!=nullptr) (*this)["options"] = options["options"];
253-
(*this)["format"] = format;
253+
//(*this)["format"] = format; // Commented out as providing the format causes issues with some models.
254254
(*this)["keep_alive"] = keep_alive_duration;
255255
type = message_type::chat;
256256

Diff for: singleheader/ollama.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -35040,7 +35040,7 @@ namespace ollama
3504035040
(*this)["stream"] = stream;
3504135041

3504235042
if (options!=nullptr) (*this)["options"] = options["options"];
35043-
(*this)["format"] = format;
35043+
//(*this)["format"] = format; // Commented out as providing the format causes issues with some models.
3504435044
(*this)["keep_alive"] = keep_alive_duration;
3504535045
type = message_type::chat;
3504635046

0 commit comments

Comments
 (0)