Josh Yan 9 kuukautta sitten
vanhempi
commit
6bab0e2368
2 muutettua tiedostoa jossa 0 lisäystä ja 6 poistoa
  1. 0 1
      api/client.go
  2. 0 5
      api/types.go

+ 0 - 1
api/client.go

@@ -382,7 +382,6 @@ func (c *Client) Version(ctx context.Context) (string, error) {
 }
 
 func Authorization(ctx context.Context, request *http.Request) (string, error) {
-
 	data := []byte(fmt.Sprintf("%s,%s,%d", request.Method, request.URL.RequestURI(), time.Now().Unix()))
 
 	home, err := os.UserHomeDir()

+ 0 - 5
api/types.go

@@ -359,11 +359,6 @@ type ModelDetails struct {
 	QuantizationLevel string   `json:"quantization_level"`
 }
 
-// EnvConfig is the configuration for the environment.
-type ServerConfig struct {
-	ModelDir string `json:"model_dir"`
-}
-
 func (m *Metrics) Summary() {
 	if m.TotalDuration > 0 {
 		fmt.Fprintf(os.Stderr, "total duration:       %v\n", m.TotalDuration)