Add support for integers and tool configuration in schema handling
This update introduces support for `jsonschema.Integer` types and updates the logic to handle nested items in schemas. Added a new default error log for unknown types using `slog.Error`. Also, integrated tool configuration with a `FunctionCallingConfig` when `dontRequireTool` is false.
This commit is contained in:
@@ -147,7 +147,8 @@ func (a anthropic) requestToAnthropicRequest(req Request) anth.MessagesRequest {
|
||||
res.Messages = msgs
|
||||
|
||||
if req.Temperature != nil {
|
||||
res.Temperature = req.Temperature
|
||||
var f = float32(*req.Temperature)
|
||||
res.Temperature = &f
|
||||
}
|
||||
|
||||
log.Println("llm request to anthropic request", res)
|
||||
|
Reference in New Issue
Block a user