Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: display help with correct default values #481

Merged
merged 1 commit into from
Jun 3, 2023

Conversation

sebastien-prudhomme
Copy link
Contributor

@sebastien-prudhomme sebastien-prudhomme commented Jun 3, 2023

Description

This PR fixes help displayed

The help is now displayed with the correct default values:

GLOBAL OPTIONS:
   --f16                          (default: false) [$F16]
   --debug                        (default: false) [$DEBUG]
   --cors                         (default: false) [$CORS]
   --cors-allow-origins value      [$CORS_ALLOW_ORIGINS]
   --threads value                Number of threads used for parallel computation. Usage of the number of physical cores in the system is suggested. (default: 4) [$THREADS]
   --models-path value            Path containing models used for inferencing (default: "/build/models") [$MODELS_PATH]
   --preload-models value         A List of models to apply in JSON at start [$PRELOAD_MODELS]
   --preload-models-config value  A List of models to apply at startup. Path to a YAML config file [$PRELOAD_MODELS_CONFIG]
   --config-file value            Config file [$CONFIG_FILE]
   --address value                Bind address for the API server. (default: ":8080") [$ADDRESS]
   --image-path value             Image directory [$IMAGE_PATH]
   --backend-assets-path value    Path used to extract libraries that are required by some of the backends in runtime. (default: "/tmp/localai/backend_data") [$BACKEND_ASSETS_PATH]
   --context-size value           Default context size of the model (default: 512) [$CONTEXT_SIZE]
   --upload-limit value           Default upload-limit. MB (default: 15) [$UPLOAD_LIMIT]
   --help, -h                     show help

Notes for Reviewers

Signed commits

  • Yes, I signed my commits.

Signed-off-by: Sébastien Prud'homme <sebastien.prudhomme@gmail.com>
@mudler
Copy link
Owner

mudler commented Jun 3, 2023

nice cleanup!

@mudler mudler merged commit aa6cdf1 into mudler:master Jun 3, 2023
5 checks passed
@mudler mudler added the bug Something isn't working label Jun 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants