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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user