chore: Update .gitignore and Makefile for development enhancements

- Added 'logs/' and '*.pid' to .gitignore to exclude log files and process ID files from version control.
- Expanded Makefile with new development commands for easier local environment management, including 'dev-start', 'dev-stop', 'dev-restart', 'dev-logs', 'dev-status', 'dev-app', and 'dev-frontend'.
- Updated README_CN.md to include instructions for the new development mode and commands for improved developer experience.
This commit is contained in:
wizardchen
2025-11-07 15:52:52 +08:00
parent 655df49d7d
commit d387fd672f
24 changed files with 2447 additions and 644 deletions
+6
View File
@@ -2,6 +2,7 @@ package ollama
import (
"context"
"encoding/json"
"fmt"
"net/http"
"net/url"
@@ -273,6 +274,11 @@ func (s *OllamaService) ListModelsDetailed(ctx context.Context) ([]OllamaModelIn
if err != nil {
return nil, fmt.Errorf("failed to get model list: %w", err)
}
jsonData, err := json.Marshal(listResp.Models)
if err != nil {
return nil, fmt.Errorf("failed to marshal model list: %w", err)
}
logger.GetLogger(ctx).Infof("List models detailed: %s", string(jsonData))
models := make([]OllamaModelInfo, len(listResp.Models))
for i, model := range listResp.Models {