ngpt 3.12.0__py3-none-any.whl → 3.12.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- ngpt/cli/args.py +5 -3
- {ngpt-3.12.0.dist-info → ngpt-3.12.1.dist-info}/METADATA +41 -22
- {ngpt-3.12.0.dist-info → ngpt-3.12.1.dist-info}/RECORD +6 -6
- {ngpt-3.12.0.dist-info → ngpt-3.12.1.dist-info}/WHEEL +0 -0
- {ngpt-3.12.0.dist-info → ngpt-3.12.1.dist-info}/entry_points.txt +0 -0
- {ngpt-3.12.0.dist-info → ngpt-3.12.1.dist-info}/licenses/LICENSE +0 -0
ngpt/cli/args.py
CHANGED
@@ -30,9 +30,6 @@ def setup_argument_parser():
|
|
30
30
|
# Version flag
|
31
31
|
parser.add_argument('-v', '--version', action=ColoredVersionAction, nargs=0,
|
32
32
|
help='Show version information and exit')
|
33
|
-
# Language option for code mode
|
34
|
-
parser.add_argument('--language', default="python",
|
35
|
-
help='Programming language to generate code in (for code mode)')
|
36
33
|
|
37
34
|
# Prompt argument
|
38
35
|
parser.add_argument('prompt', nargs='?', default=None,
|
@@ -104,6 +101,11 @@ def setup_argument_parser():
|
|
104
101
|
global_group.add_argument('--renderer', choices=['auto', 'rich', 'glow'], default='auto',
|
105
102
|
help='Select which markdown renderer to use with --prettify or --stream-prettify (auto, rich, or glow)')
|
106
103
|
|
104
|
+
# Code Mode Options
|
105
|
+
code_group = parser.add_argument_group('Code Mode Options')
|
106
|
+
code_group.add_argument('--language', default="python",
|
107
|
+
help='Programming language to generate code in (for code mode)')
|
108
|
+
|
107
109
|
# GitCommit message options
|
108
110
|
gitcommsg_group = parser.add_argument_group('Git Commit Message Options')
|
109
111
|
gitcommsg_group.add_argument('--rec-chunk', action='store_true',
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: ngpt
|
3
|
-
Version: 3.12.
|
3
|
+
Version: 3.12.1
|
4
4
|
Summary: A Swiss army knife for LLMs: A fast, lightweight CLI and interactive chat tool that brings the power of any OpenAI-compatible LLM (OpenAI, Ollama, Groq, Claude, Gemini, etc.) straight to your terminal. rewrite texts or refine code, craft git commit messages, generate and run OS-aware shell commands.
|
5
5
|
Project-URL: Homepage, https://github.com/nazdridoy/ngpt
|
6
6
|
Project-URL: Repository, https://github.com/nazdridoy/ngpt
|
@@ -281,14 +281,14 @@ For more examples and detailed usage, visit the [CLI Usage Guide](https://nazdri
|
|
281
281
|
```console
|
282
282
|
❯ ngpt -h
|
283
283
|
|
284
|
-
usage: ngpt [-h] [-v] [--
|
285
|
-
[--
|
286
|
-
[--
|
287
|
-
[--
|
284
|
+
usage: ngpt [-h] [-v] [--config [CONFIG]] [--config-index CONFIG_INDEX] [--provider PROVIDER] [--remove] [--show-config]
|
285
|
+
[--all] [--list-models] [--list-renderers] [--cli-config [COMMAND ...]] [--role-config [ACTION ...]]
|
286
|
+
[--api-key API_KEY] [--base-url BASE_URL] [--model MODEL] [--web-search] [--pipe]
|
287
|
+
[--temperature TEMPERATURE] [--top_p TOP_P] [--max_tokens MAX_TOKENS] [--log [FILE]]
|
288
288
|
[--preprompt PREPROMPT | --role ROLE] [--no-stream | --prettify | --stream-prettify]
|
289
|
-
[--renderer {auto,rich,glow}] [--rec-chunk] [--diff [FILE]] [--chunk-size CHUNK_SIZE]
|
289
|
+
[--renderer {auto,rich,glow}] [--language LANGUAGE] [--rec-chunk] [--diff [FILE]] [--chunk-size CHUNK_SIZE]
|
290
290
|
[--analyses-chunk-size ANALYSES_CHUNK_SIZE] [--max-msg-lines MAX_MSG_LINES]
|
291
|
-
[--max-recursion-depth MAX_RECURSION_DEPTH] [-i | -s | -c | -t | -r | -g]
|
291
|
+
[--max-recursion-depth MAX_RECURSION_DEPTH] [--humanize] [--multiline] [-i | -s | -c | -t | -r | -g]
|
292
292
|
[prompt]
|
293
293
|
|
294
294
|
nGPT - Interact with AI language models via OpenAI-compatible APIs
|
@@ -301,14 +301,15 @@ options::
|
|
301
301
|
|
302
302
|
-h, --help show this help message and exit
|
303
303
|
-v, --version Show version information and exit
|
304
|
-
--language LANGUAGE Programming language to generate code in (for code mode)
|
305
304
|
|
306
305
|
Configuration Options::
|
307
306
|
|
308
|
-
--config [CONFIG] Path to a custom config file or, if no value provided, enter interactive
|
307
|
+
--config [CONFIG] Path to a custom config file or, if no value provided, enter interactive
|
308
|
+
configuration mode to create a new config
|
309
309
|
--config-index CONFIG_INDEX Index of the configuration to use or edit (default: 0)
|
310
310
|
--provider PROVIDER Provider name to identify the configuration to use
|
311
|
-
--remove Remove the configuration at the specified index (requires --config and
|
311
|
+
--remove Remove the configuration at the specified index (requires --config and
|
312
|
+
--config-index or --provider)
|
312
313
|
--show-config Show the current configuration(s) and exit
|
313
314
|
--all Show details for all configurations (requires --show-config)
|
314
315
|
--list-models List all available models for the current configuration and exit
|
@@ -321,15 +322,21 @@ Global Options::
|
|
321
322
|
--api-key API_KEY API key for the service
|
322
323
|
--base-url BASE_URL Base URL for the API
|
323
324
|
--model MODEL Model to use
|
324
|
-
--web-search Enable web search capability using DuckDuckGo to enhance prompts with relevant
|
325
|
-
|
325
|
+
--web-search Enable web search capability using DuckDuckGo to enhance prompts with relevant
|
326
|
+
information
|
327
|
+
--pipe Read from stdin and use content with prompt. Use {} in prompt as placeholder
|
328
|
+
for stdin content. Can be used with any mode option except --text and
|
329
|
+
--interactive
|
326
330
|
--temperature TEMPERATURE Set temperature (controls randomness, default: 0.7)
|
327
331
|
--top_p TOP_P Set top_p (controls diversity, default: 1.0)
|
328
332
|
--max_tokens MAX_TOKENS Set max response length in tokens
|
329
|
-
--log [FILE] Set filepath to log conversation to, or create a temporary log file if no path
|
333
|
+
--log [FILE] Set filepath to log conversation to, or create a temporary log file if no path
|
334
|
+
provided
|
330
335
|
--preprompt PREPROMPT Set custom system prompt to control AI behavior
|
331
|
-
--role ROLE Use a predefined role to set system prompt (mutually exclusive with
|
332
|
-
--
|
336
|
+
--role ROLE Use a predefined role to set system prompt (mutually exclusive with
|
337
|
+
--preprompt)
|
338
|
+
--renderer {auto,rich,glow} Select which markdown renderer to use with --prettify or --stream-prettify
|
339
|
+
(auto, rich, or glow)
|
333
340
|
|
334
341
|
Output Display Options (mutually exclusive)::
|
335
342
|
|
@@ -337,14 +344,30 @@ Output Display Options (mutually exclusive)::
|
|
337
344
|
--prettify Render complete response with markdown and code formatting (non-streaming)
|
338
345
|
--stream-prettify Stream response with real-time markdown rendering (default)
|
339
346
|
|
347
|
+
Code Mode Options::
|
348
|
+
|
349
|
+
--language LANGUAGE Programming language to generate code in (for code mode)
|
350
|
+
|
340
351
|
Git Commit Message Options::
|
341
352
|
|
342
353
|
--rec-chunk Process large diffs in chunks with recursive analysis if needed
|
343
|
-
--diff [FILE] Use diff from specified file instead of staged changes. If used without a path,
|
354
|
+
--diff [FILE] Use diff from specified file instead of staged changes. If used without a path,
|
355
|
+
uses the path from CLI config.
|
344
356
|
--chunk-size CHUNK_SIZE Number of lines per chunk when chunking is enabled (default: 200)
|
345
|
-
--analyses-chunk-size ANALYSES_CHUNK_SIZE
|
357
|
+
--analyses-chunk-size ANALYSES_CHUNK_SIZE
|
358
|
+
Number of lines per chunk when recursively chunking analyses (default: 200)
|
346
359
|
--max-msg-lines MAX_MSG_LINES Maximum number of lines in commit message before condensing (default: 20)
|
347
|
-
--max-recursion-depth MAX_RECURSION_DEPTH
|
360
|
+
--max-recursion-depth MAX_RECURSION_DEPTH
|
361
|
+
Maximum recursion depth for commit message condensing (default: 3)
|
362
|
+
|
363
|
+
Rewrite Mode Options::
|
364
|
+
|
365
|
+
--humanize Transform AI-generated text into human-like content that passes AI detection
|
366
|
+
tools
|
367
|
+
|
368
|
+
Interactive Mode Options::
|
369
|
+
|
370
|
+
--multiline Enable multiline text input with the "ml" command in interactive mode
|
348
371
|
|
349
372
|
Modes (mutually exclusive)::
|
350
373
|
|
@@ -355,10 +378,6 @@ Modes (mutually exclusive)::
|
|
355
378
|
-r, --rewrite Rewrite text from stdin to be more natural while preserving tone and meaning
|
356
379
|
-g, --gitcommsg Generate AI-powered git commit messages from staged changes or diff file
|
357
380
|
|
358
|
-
Rewrite Mode Options::
|
359
|
-
|
360
|
-
--humanize Transform AI-generated text into human-like content that passes AI detection tools
|
361
|
-
|
362
381
|
```
|
363
382
|
|
364
383
|
> **Note**: For better visualization of conventional commit messages on GitHub, you can use the [GitHub Commit Labels](https://greasyfork.org/en/scripts/526153-github-commit-labels) userscript, which adds colorful labels to your commits.
|
@@ -2,7 +2,7 @@ ngpt/__init__.py,sha256=kpKhViLakwMdHZkuLht2vWcjt0uD_5gR33gvMhfXr6w,664
|
|
2
2
|
ngpt/__main__.py,sha256=j3eFYPOtCCFBOGh7NK5IWEnADnTMMSEB9GLyIDoW724,66
|
3
3
|
ngpt/client.py,sha256=XjpA2UnvrRvzk6_DzVEddUTzoPlF8koQ-cZURpHoT7c,9041
|
4
4
|
ngpt/cli/__init__.py,sha256=hebbDSMGiOd43YNnQP67uzr67Ue6rZPwm2czynr5iZY,43
|
5
|
-
ngpt/cli/args.py,sha256=
|
5
|
+
ngpt/cli/args.py,sha256=LYz4MhJUg_4G0qps1QR22vp1_3riMbz6TdA85jL9aKQ,15400
|
6
6
|
ngpt/cli/config_manager.py,sha256=NQQcWnjUppAAd0s0p9YAf8EyKS1ex5-0EB4DvKdB4dk,3662
|
7
7
|
ngpt/cli/formatters.py,sha256=HBYGlx_7eoAKyzfy0Vq5L0yn8yVKjngqYBukMmXCcz0,9401
|
8
8
|
ngpt/cli/main.py,sha256=P5ljHSRoWsmHBDKbY3WxMNNZB19ntZ3NURd7CWfHtOg,28811
|
@@ -23,8 +23,8 @@ ngpt/utils/config.py,sha256=wsArA4osnh8fKqOvtsPqqBxAz3DpdjtaWUFaRtnUdyc,10452
|
|
23
23
|
ngpt/utils/log.py,sha256=f1jg2iFo35PAmsarH8FVL_62plq4VXH0Mu2QiP6RJGw,15934
|
24
24
|
ngpt/utils/pipe.py,sha256=qRHF-Ma7bbU0cOcb1Yhe4S-kBavivtnnvLA3EYS4FY4,2162
|
25
25
|
ngpt/utils/web_search.py,sha256=w5ke4KJMRxq7r5jtbUXvspja6XhjoPZloVkZ0IvBXIE,30731
|
26
|
-
ngpt-3.12.
|
27
|
-
ngpt-3.12.
|
28
|
-
ngpt-3.12.
|
29
|
-
ngpt-3.12.
|
30
|
-
ngpt-3.12.
|
26
|
+
ngpt-3.12.1.dist-info/METADATA,sha256=faQ_akxkNy8w9dORvyHQPMV8f1xtsVhOWn9nvoSkPxM,31935
|
27
|
+
ngpt-3.12.1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
28
|
+
ngpt-3.12.1.dist-info/entry_points.txt,sha256=SqAAvLhMrsEpkIr4YFRdUeyuXQ9o0IBCeYgE6AVojoI,44
|
29
|
+
ngpt-3.12.1.dist-info/licenses/LICENSE,sha256=mQkpWoADxbHqE0HRefYLJdm7OpdrXBr3vNv5bZ8w72M,1065
|
30
|
+
ngpt-3.12.1.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|