Skip to content

Commit 37b5c2b

Browse files
committed
Fix thinking level issue causing slow queries in r2ai
1 parent 0e6a8cc commit 37b5c2b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/openai.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ R_IPI R2AI_ChatResponse *r2ai_openai(RCorePluginSession *cps, R2AIArgs args) {
118118
pj_kb (pj, "stream", false);
119119

120120
if (provider_info && provider_info->api_type == R2AI_API_OLLAMA) {
121-
// Ollama uses "options" object for parameters
121+
pj_kb (pj, "think", args.thinking_tokens > 0);
122122
pj_ko (pj, "options");
123123
if (args.max_tokens) {
124124
pj_kn (pj, "num_predict", args.max_tokens);

0 commit comments

Comments
 (0)