Procházet zdrojové kódy

api: remove unused create fields

These fields are deprecated, but specifying them will not do anything. Removing them as the other deprecated fields will still work, but these do not, so they dont match our existing pattern.
Bruce MacDonald před 3 měsíci
rodič
revize
29a8975c66
1 změnil soubory, kde provedl 0 přidání a 7 odebrání
  1. 0 7
      api/types.go

+ 0 - 7
api/types.go

@@ -308,15 +308,8 @@ type CreateRequest struct {
 	Parameters map[string]any    `json:"parameters,omitempty"`
 	Parameters map[string]any    `json:"parameters,omitempty"`
 	Messages   []Message         `json:"messages,omitempty"`
 	Messages   []Message         `json:"messages,omitempty"`
 
 
-	// Deprecated: set with the other request options
-	Modelfile string `json:"modelfile"`
-
 	// Deprecated: set the model name with Model instead
 	// Deprecated: set the model name with Model instead
 	Name string `json:"name"`
 	Name string `json:"name"`
-
-	// Deprecated: set the file content with Modelfile instead
-	Path string `json:"path"`
-
 	// Deprecated: use Quantize instead
 	// Deprecated: use Quantize instead
 	Quantization string `json:"quantization,omitempty"`
 	Quantization string `json:"quantization,omitempty"`
 }
 }