Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions core/gallery/models.go
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ func InstallModel(ctx context.Context, systemState *system.SystemState, nameOver
return nil, fmt.Errorf("failed to create parent directory for prompt template %q: %v", template.Name, err)
}
// Create and write file content
err = os.WriteFile(filePath, []byte(template.Content), 0600)
err = os.WriteFile(filePath, []byte(template.Content), 0644)
if err != nil {
return nil, fmt.Errorf("failed to write prompt template %q: %v", template.Name, err)
}
Expand Down Expand Up @@ -268,7 +268,7 @@ func InstallModel(ctx context.Context, systemState *system.SystemState, nameOver
return nil, fmt.Errorf("failed to validate updated config YAML: %v", err)
}

err = os.WriteFile(configFilePath, updatedConfigYAML, 0600)
err = os.WriteFile(configFilePath, updatedConfigYAML, 0644)
if err != nil {
return nil, fmt.Errorf("failed to write updated config file: %v", err)
}
Expand All @@ -285,7 +285,7 @@ func InstallModel(ctx context.Context, systemState *system.SystemState, nameOver

xlog.Debug("Written gallery file", "file", modelFile)

return &modelConfig, os.WriteFile(modelFile, data, 0600)
return &modelConfig, os.WriteFile(modelFile, data, 0644)
}

func galleryFileName(name string) string {
Expand Down
Loading