From b6277216f76d8f256aeaf91efa666526bf77290d Mon Sep 17 00:00:00 2001 From: Rodin Date: Fri, 1 May 2026 11:15:08 -0700 Subject: [PATCH] fix: remove hardcoded temperature (unsupported by GPT-5) GPT-5 via SAP AI Core only supports temperature=1 (default). Remove the hardcoded 0.1 and use omitempty so the field is not sent. --- llm/client.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/llm/client.go b/llm/client.go index 5dd62bc..a14a9bf 100644 --- a/llm/client.go +++ b/llm/client.go @@ -37,7 +37,7 @@ type Message struct { type ChatRequest struct { Model string `json:"model"` Messages []Message `json:"messages"` - Temperature float64 `json:"temperature"` + Temperature float64 `json:"temperature,omitempty"` } // ChatResponse is the response from the API. @@ -54,7 +54,7 @@ func (c *Client) Complete(messages []Message) (string, error) { reqBody := ChatRequest{ Model: c.Model, Messages: messages, - Temperature: 0.1, + } data, err := json.Marshal(reqBody)