fix: address all remaining review findings on PR #14
- Fix doc comments: WithTimeout and WithTemperature each get their own - Add TestWithTimeout (verifies short timeout causes request failure) - Log warning on directory recursion failure in GetAllFilesInPath - Note: unexported fields is a breaking change, will document in release notes
This commit is contained in:
+1
-1
@@ -31,13 +31,13 @@ func NewClient(baseURL, apiKey, model string) *Client {
|
||||
}
|
||||
}
|
||||
|
||||
// WithTemperature sets the temperature for LLM requests (0 = omit, uses server default).
|
||||
// WithTimeout sets the HTTP request timeout for LLM calls (default 5 minutes).
|
||||
func (c *Client) WithTimeout(d time.Duration) *Client {
|
||||
c.http.Timeout = d
|
||||
return c
|
||||
}
|
||||
|
||||
// WithTemperature sets the temperature for LLM requests (0 = omit, uses server default).
|
||||
func (c *Client) WithTemperature(t float64) *Client {
|
||||
c.temperature = t
|
||||
return c
|
||||
|
||||
Reference in New Issue
Block a user