summaryrefslogtreecommitdiff
path: root/agent
diff options
context:
space:
mode:
authorGrail Finder <wohilas@gmail.com>2026-02-21 16:26:13 +0300
committerGrail Finder <wohilas@gmail.com>2026-02-21 16:26:13 +0300
commit96ffbd5cf53c448bdfc0d86f1e7e866a358e01bd (patch)
tree649e095f45a8f030a2bf209f999731a1b92921a3 /agent
parent85b11fa9ffd5f72b0b76200d2fa590960273410b (diff)
Feat: openrouter reasoning
Diffstat (limited to 'agent')
-rw-r--r--agent/request.go12
1 files changed, 6 insertions, 6 deletions
diff --git a/agent/request.go b/agent/request.go
index 14009dd..c89127f 100644
--- a/agent/request.go
+++ b/agent/request.go
@@ -15,10 +15,10 @@ import (
var httpClient = &http.Client{}
var defaultProps = map[string]float32{
- "temperature": 0.8,
- "dry_multiplier": 0.0,
- "min_p": 0.05,
- "n_predict": -1.0,
+ "temperature": 0.8,
+ "dry_multiplier": 0.0,
+ "min_p": 0.05,
+ "n_predict": -1.0,
}
func detectAPI(api string) (isCompletion, isChat, isDeepSeek, isOpenRouter bool) {
@@ -110,8 +110,8 @@ func (ag *AgentClient) buildRequest(sysprompt, msg string) ([]byte, error) {
req := models.NewDSChatReq(*chatBody)
return json.Marshal(req)
case isOpenRouter:
- // OpenRouter chat
- req := models.NewOpenRouterChatReq(*chatBody, defaultProps)
+ // OpenRouter chat - agents don't use reasoning by default
+ req := models.NewOpenRouterChatReq(*chatBody, defaultProps, "")
return json.Marshal(req)
default:
// Assume llama.cpp chat (OpenAI format)