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)