on main help sign in
fix: remove `max_tokens` minimum requirement to fix json schema issue (#1532)
commit2b222e3d951d317389f361f8f12be0fbc77267eb authormasroor-ahmad <75073229+masroor-ahmad@users.noreply.github.com> dateMon 1 Dec 2025, 18:16 (1 year ago) parentc330f0c
2 files changed+1−2
internal/config/config.go+1−1 schema.json−1
internal/config/config.go+1−1
@@ -73,7 +73,7 @@ type SelectedModel struct {
7373 Think bool `json:"think,omitempty" jsonschema:"description=Enable thinking mode for Anthropic models that support reasoning"`
7474
7575 // Overrides the default model configuration.
76− MaxTokens int64 `json:"max_tokens,omitempty" jsonschema:"description=Maximum number of tokens for model responses,minimum=1,maximum=200000,example=4096"`
76+ MaxTokens int64 `json:"max_tokens,omitempty" jsonschema:"description=Maximum number of tokens for model responses,maximum=200000,example=4096"`
7777 Temperature *float64 `json:"temperature,omitempty" jsonschema:"description=Sampling temperature,minimum=0,maximum=1,example=0.7"`
7878 TopP *float64 `json:"top_p,omitempty" jsonschema:"description=Top-p (nucleus) sampling parameter,minimum=0,maximum=1,example=0.9"`
7979 TopK *int64 `json:"top_k,omitempty" jsonschema:"description=Top-k sampling parameter"`
schema.json−1
@@ -555,7 +555,6 @@
555555 "max_tokens": {
556556 "type": "integer",
557557 "maximum": 200000,
558− "minimum": 1,
559558 "description": "Maximum number of tokens for model responses",
560559 "examples": [
561560 4096