From 29a8975c66860c2b0b3fa15515d3e3dd4c78d51d Mon Sep 17 00:00:00 2001 From: Bruce MacDonald Date: Fri, 3 Jan 2025 11:48:58 -0800 Subject: [PATCH] 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. --- api/types.go | 7 ------- 1 file changed, 7 deletions(-) diff --git a/api/types.go b/api/types.go index 5100ed2b4..0d7c47357 100644 --- a/api/types.go +++ b/api/types.go @@ -308,15 +308,8 @@ type CreateRequest struct { Parameters map[string]any `json:"parameters,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 Name string `json:"name"` - - // Deprecated: set the file content with Modelfile instead - Path string `json:"path"` - // Deprecated: use Quantize instead Quantization string `json:"quantization,omitempty"` }