Skip to content

Commit 913c9d3

Browse files
committed
Tweak comments
1 parent aeb5155 commit 913c9d3

2 files changed

Lines changed: 18 additions & 13 deletions

File tree

config/privacy-filter.php

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,12 @@
33
return [
44
/*
55
|--------------------------------------------------------------------------
6-
| Paths
6+
| Privacy Filter Paths
77
|--------------------------------------------------------------------------
88
|
9-
| These paths are used by the Artisan installers and, later, by the runtime
10-
| PHP wrapper when invoking the local privacy-filter executable.
9+
| Here you may configure the paths where the privacy-filter binary and
10+
| model should be installed. These paths will be used by the installer
11+
| commands and by the runtime classifier.
1112
|
1213
*/
1314

@@ -18,11 +19,11 @@
1819

1920
/*
2021
|--------------------------------------------------------------------------
21-
| Process
22+
| Process Timeout
2223
|--------------------------------------------------------------------------
2324
|
24-
| The PHP API shells out to the local privacy-filter binary. This timeout
25-
| protects requests and jobs from hanging indefinitely if the process stalls.
25+
| The classifier runs the privacy-filter binary as a separate process. This
26+
| value determines how many seconds the process may run before timing out.
2627
|
2728
*/
2829

@@ -32,12 +33,12 @@
3233

3334
/*
3435
|--------------------------------------------------------------------------
35-
| Model
36+
| Privacy Filter Model
3637
|--------------------------------------------------------------------------
3738
|
38-
| LocalAI currently publishes one English GGUF and one multilingual GGUF for
39-
| privacy-filter.cpp. The English F16 model is the smallest compatible file
40-
| available for basic application use and CI smoke tests.
39+
| This URL points to the GGUF model that should be downloaded by the model
40+
| installer. You may change this value if you would like to use another
41+
| compatible privacy-filter model.
4142
|
4243
*/
4344

@@ -50,11 +51,12 @@
5051

5152
/*
5253
|--------------------------------------------------------------------------
53-
| Binary Release
54+
| Binary Release Source
5455
|--------------------------------------------------------------------------
5556
|
56-
| The Laravel package installs compiled privacy-filter.cpp binaries from
57-
| the companion GitHub releases repository.
57+
| The binary installer downloads compiled privacy-filter binaries from a
58+
| GitHub release. You may customize the repository or release version
59+
| used when installing the binary.
5860
|
5961
*/
6062

src/Commands/FileDownloader.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@
99
use Symfony\Component\Console\Output\OutputInterface;
1010
use Throwable;
1111

12+
/**
13+
* Download files with progress indication.
14+
*/
1215
class FileDownloader
1316
{
1417
/**

0 commit comments

Comments
 (0)