refactor: Improve Elasticsearch query construction and error handling

This commit is contained in:
wizardchen
2025-11-25 22:06:43 +08:00
parent 64c44c9e27
commit 2f45bf7d86
12 changed files with 158 additions and 154 deletions
-2
View File
@@ -147,8 +147,6 @@ func (s *OllamaService) PullModel(ctx context.Context, modelName string) error {
return nil
}
logger.GetLogger(ctx).Infof("Pulling model %s...", modelName)
// Use official client to pull model
pullReq := &api.PullRequest{
Name: modelName,