Skip to content

Commit

Permalink
Update internal/controller/tokenizer/update.go
Browse files Browse the repository at this point in the history
Co-authored-by: RayanMarmar <[email protected]>
  • Loading branch information
OmarElChamaa and RayanMarmar authored Apr 15, 2024
1 parent 00190f3 commit 8725d5b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/controller/tokenizer/update.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ func (ic UpdateTokenizerController) processUpdateTokenizer(args []string) (warni
return warning, info, fmt.Errorf("error while getting configured models: %s", err.Error())
}
if len(models) == 0 {
err = fmt.Errorf("no models to choose from")
return warning, "no models to choose from", err
err = fmt.Errorf("no configured models found")
return warning, info, err
}
var modelToUse model.Model

Expand Down

0 comments on commit 8725d5b

Please sign in to comment.