mirror of
https://github.com/ollama/ollama.git
synced 2025-07-13 00:27:13 +02:00
allow overriding default generate options
This commit is contained in:
@ -33,8 +33,8 @@ type GenerateRequest struct {
|
||||
Model string `json:"model"`
|
||||
Prompt string `json:"prompt"`
|
||||
|
||||
ModelOptions `json:"model_opts,omitempty"`
|
||||
PredictOptions `json:"predict_opts,omitempty"`
|
||||
ModelOptions *ModelOptions `json:"model_opts,omitempty"`
|
||||
PredictOptions *PredictOptions `json:"predict_opts,omitempty"`
|
||||
}
|
||||
|
||||
type ModelOptions struct {
|
||||
|
Reference in New Issue
Block a user