ngpt 3.12.1__py3-none-any.whl → 4.0.0__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 +33 -36
- ngpt/cli/main.py +54 -16
- ngpt/cli/modes/interactive.py +1 -1
- ngpt/utils/cli_config.py +16 -9
- {ngpt-3.12.1.dist-info → ngpt-4.0.0.dist-info}/METADATA +46 -59
- {ngpt-3.12.1.dist-info → ngpt-4.0.0.dist-info}/RECORD +9 -9
- {ngpt-3.12.1.dist-info → ngpt-4.0.0.dist-info}/WHEEL +0 -0
- {ngpt-3.12.1.dist-info → ngpt-4.0.0.dist-info}/entry_points.txt +0 -0
- {ngpt-3.12.1.dist-info → ngpt-4.0.0.dist-info}/licenses/LICENSE +0 -0
ngpt/cli/args.py
CHANGED
@@ -12,7 +12,8 @@ def setup_argument_parser():
|
|
12
12
|
# Minimalist, clean epilog design
|
13
13
|
epilog = f"\n{COLORS['yellow']}nGPT {COLORS['bold']}v{__version__}{COLORS['reset']} • {COLORS['green']}Docs: {COLORS['bold']}https://nazdridoy.github.io/ngpt/usage/cli_usage{COLORS['reset']}"
|
14
14
|
|
15
|
-
parser = argparse.ArgumentParser(description=description, formatter_class=ColoredHelpFormatter,
|
15
|
+
parser = argparse.ArgumentParser(description=description, formatter_class=ColoredHelpFormatter,
|
16
|
+
epilog=epilog, add_help=False)
|
16
17
|
|
17
18
|
# Add custom error method with color
|
18
19
|
original_error = parser.error
|
@@ -27,41 +28,16 @@ def setup_argument_parser():
|
|
27
28
|
print(f"{COLORS['green']}{COLORS['bold']}nGPT{COLORS['reset']} version {COLORS['yellow']}{__version__}{COLORS['reset']}")
|
28
29
|
parser.exit()
|
29
30
|
|
30
|
-
# Version flag
|
31
|
-
parser.add_argument('-v', '--version', action=ColoredVersionAction, nargs=0,
|
32
|
-
help='Show version information and exit')
|
33
|
-
|
34
|
-
# Prompt argument
|
35
|
-
parser.add_argument('prompt', nargs='?', default=None,
|
36
|
-
help='The prompt to send')
|
37
|
-
|
38
|
-
# Config options
|
39
|
-
config_group = parser.add_argument_group('Configuration Options')
|
40
|
-
config_group.add_argument('--config', nargs='?', const=True,
|
41
|
-
help='Path to a custom config file or, if no value provided, enter interactive configuration mode to create a new config')
|
42
|
-
config_group.add_argument('--config-index', type=int, default=0,
|
43
|
-
help='Index of the configuration to use or edit (default: 0)')
|
44
|
-
config_group.add_argument('--provider',
|
45
|
-
help='Provider name to identify the configuration to use')
|
46
|
-
config_group.add_argument('--remove', action='store_true',
|
47
|
-
help='Remove the configuration at the specified index (requires --config and --config-index or --provider)')
|
48
|
-
config_group.add_argument('--show-config', action='store_true',
|
49
|
-
help='Show the current configuration(s) and exit')
|
50
|
-
config_group.add_argument('--all', action='store_true',
|
51
|
-
help='Show details for all configurations (requires --show-config)')
|
52
|
-
config_group.add_argument('--list-models', action='store_true',
|
53
|
-
help='List all available models for the current configuration and exit')
|
54
|
-
config_group.add_argument('--list-renderers', action='store_true',
|
55
|
-
help='Show available markdown renderers for use with --prettify')
|
56
|
-
config_group.add_argument('--cli-config', nargs='*', metavar='COMMAND',
|
57
|
-
help='Manage CLI configuration (set, get, unset, list, help)')
|
58
|
-
|
59
|
-
# Role configuration options
|
60
|
-
config_group.add_argument('--role-config', nargs='*', metavar='ACTION',
|
61
|
-
help='Manage custom roles (help, create, show, edit, list, remove) [role_name]')
|
62
|
-
|
63
31
|
# Global options
|
64
32
|
global_group = parser.add_argument_group('Global Options')
|
33
|
+
|
34
|
+
# Add help and version to the global group
|
35
|
+
global_group.add_argument('-h', '--help', action='help',
|
36
|
+
help='show this help message and exit')
|
37
|
+
global_group.add_argument('-v', '--version', action=ColoredVersionAction, nargs=0,
|
38
|
+
help='Show version information and exit')
|
39
|
+
|
40
|
+
# Then add the other global options
|
65
41
|
global_group.add_argument('--api-key',
|
66
42
|
help='API key for the service')
|
67
43
|
global_group.add_argument('--base-url',
|
@@ -88,6 +64,29 @@ def setup_argument_parser():
|
|
88
64
|
prompt_exclusive_group.add_argument('--role',
|
89
65
|
help='Use a predefined role to set system prompt (mutually exclusive with --preprompt)')
|
90
66
|
|
67
|
+
# Config options
|
68
|
+
config_group = parser.add_argument_group('Configuration Options')
|
69
|
+
config_group.add_argument('--config', nargs='?', const=True,
|
70
|
+
help='Path to a custom config file or, if no value provided, enter interactive configuration mode to create a new config')
|
71
|
+
config_group.add_argument('--config-index', type=int, default=0,
|
72
|
+
help='Index of the configuration to use or edit (default: 0)')
|
73
|
+
config_group.add_argument('--provider',
|
74
|
+
help='Provider name to identify the configuration to use')
|
75
|
+
config_group.add_argument('--remove', action='store_true',
|
76
|
+
help='Remove the configuration at the specified index (requires --config and --config-index or --provider)')
|
77
|
+
config_group.add_argument('--show-config', action='store_true',
|
78
|
+
help='Show the current configuration(s) and exit')
|
79
|
+
config_group.add_argument('--all', action='store_true',
|
80
|
+
help='Show details for all configurations (requires --show-config)')
|
81
|
+
config_group.add_argument('--list-models', action='store_true',
|
82
|
+
help='List all available models for the current configuration and exit')
|
83
|
+
config_group.add_argument('--list-renderers', action='store_true',
|
84
|
+
help='Show available markdown renderers for use with --prettify')
|
85
|
+
config_group.add_argument('--cli-config', nargs='*', metavar='COMMAND',
|
86
|
+
help='Manage CLI configuration (set, get, unset, list, help)')
|
87
|
+
config_group.add_argument('--role-config', nargs='*', metavar='ACTION',
|
88
|
+
help='Manage custom roles (help, create, show, edit, list, remove) [role_name]')
|
89
|
+
|
91
90
|
# Output display options (mutually exclusive group)
|
92
91
|
output_group = parser.add_argument_group('Output Display Options (mutually exclusive)')
|
93
92
|
output_exclusive_group = output_group.add_mutually_exclusive_group()
|
@@ -128,8 +127,6 @@ def setup_argument_parser():
|
|
128
127
|
|
129
128
|
# Interactive mode options
|
130
129
|
interactive_group = parser.add_argument_group('Interactive Mode Options')
|
131
|
-
interactive_group.add_argument('--multiline', action='store_true',
|
132
|
-
help='Enable multiline text input with the "ml" command in interactive mode')
|
133
130
|
|
134
131
|
# Mode flags (mutually exclusive)
|
135
132
|
mode_group = parser.add_argument_group('Modes (mutually exclusive)')
|
ngpt/cli/main.py
CHANGED
@@ -37,7 +37,7 @@ def show_cli_config_help():
|
|
37
37
|
print(f" {COLORS['yellow']}ngpt --cli-config get OPTION{COLORS['reset']} - Get the current value of OPTION")
|
38
38
|
print(f" {COLORS['yellow']}ngpt --cli-config get{COLORS['reset']} - Show all CLI configuration settings")
|
39
39
|
print(f" {COLORS['yellow']}ngpt --cli-config unset OPTION{COLORS['reset']} - Remove OPTION from configuration")
|
40
|
-
print(f" {COLORS['yellow']}ngpt --cli-config list{COLORS['reset']} - List all available options")
|
40
|
+
print(f" {COLORS['yellow']}ngpt --cli-config list{COLORS['reset']} - List all available options with types and defaults")
|
41
41
|
|
42
42
|
print(f"\n {COLORS['cyan']}Available options:{COLORS['reset']}")
|
43
43
|
|
@@ -51,8 +51,10 @@ def show_cli_config_help():
|
|
51
51
|
"gitcommsg": [] # Add gitcommsg context
|
52
52
|
}
|
53
53
|
|
54
|
-
|
55
|
-
|
54
|
+
# Get option details from list_cli_config_options instead of CLI_CONFIG_OPTIONS
|
55
|
+
for option_details in list_cli_config_options():
|
56
|
+
option = option_details["name"]
|
57
|
+
for context in option_details["context"]:
|
56
58
|
if context in context_groups:
|
57
59
|
if context == "all":
|
58
60
|
context_groups[context].append(option)
|
@@ -63,25 +65,57 @@ def show_cli_config_help():
|
|
63
65
|
# Print general options (available in all contexts)
|
64
66
|
print(f" {COLORS['yellow']}General options (all modes):{COLORS['reset']}")
|
65
67
|
for option in sorted(context_groups["all"]):
|
66
|
-
|
68
|
+
# Get option details
|
69
|
+
option_detail = next((o for o in list_cli_config_options() if o["name"] == option), None)
|
70
|
+
if option_detail:
|
71
|
+
option_type = option_detail["type"]
|
72
|
+
default = option_detail["default"]
|
73
|
+
default_str = f"(default: {default})" if default is not None else "(default: None)"
|
74
|
+
print(f" {option} - {COLORS['cyan']}Type: {option_type}{COLORS['reset']} {default_str}")
|
75
|
+
else:
|
76
|
+
print(f" {option}")
|
67
77
|
|
68
78
|
# Print code options
|
69
79
|
if context_groups["code"]:
|
70
80
|
print(f"\n {COLORS['yellow']}Code mode options (-c/--code):{COLORS['reset']}")
|
71
81
|
for option in sorted(context_groups["code"]):
|
72
|
-
|
82
|
+
# Get option details
|
83
|
+
option_detail = next((o for o in list_cli_config_options() if o["name"] == option), None)
|
84
|
+
if option_detail:
|
85
|
+
option_type = option_detail["type"]
|
86
|
+
default = option_detail["default"]
|
87
|
+
default_str = f"(default: {default})" if default is not None else "(default: None)"
|
88
|
+
print(f" {option} - {COLORS['cyan']}Type: {option_type}{COLORS['reset']} {default_str}")
|
89
|
+
else:
|
90
|
+
print(f" {option}")
|
73
91
|
|
74
92
|
# Print interactive mode options
|
75
93
|
if context_groups["interactive"]:
|
76
94
|
print(f"\n {COLORS['yellow']}Interactive mode options (-i/--interactive):{COLORS['reset']}")
|
77
95
|
for option in sorted(context_groups["interactive"]):
|
78
|
-
|
96
|
+
# Get option details
|
97
|
+
option_detail = next((o for o in list_cli_config_options() if o["name"] == option), None)
|
98
|
+
if option_detail:
|
99
|
+
option_type = option_detail["type"]
|
100
|
+
default = option_detail["default"]
|
101
|
+
default_str = f"(default: {default})" if default is not None else "(default: None)"
|
102
|
+
print(f" {option} - {COLORS['cyan']}Type: {option_type}{COLORS['reset']} {default_str}")
|
103
|
+
else:
|
104
|
+
print(f" {option}")
|
79
105
|
|
80
106
|
# Print gitcommsg options
|
81
107
|
if context_groups["gitcommsg"]:
|
82
108
|
print(f"\n {COLORS['yellow']}Git commit message options (-g/--gitcommsg):{COLORS['reset']}")
|
83
109
|
for option in sorted(context_groups["gitcommsg"]):
|
84
|
-
|
110
|
+
# Get option details
|
111
|
+
option_detail = next((o for o in list_cli_config_options() if o["name"] == option), None)
|
112
|
+
if option_detail:
|
113
|
+
option_type = option_detail["type"]
|
114
|
+
default = option_detail["default"]
|
115
|
+
default_str = f"(default: {default})" if default is not None else "(default: None)"
|
116
|
+
print(f" {option} - {COLORS['cyan']}Type: {option_type}{COLORS['reset']} {default_str}")
|
117
|
+
else:
|
118
|
+
print(f" {option}")
|
85
119
|
|
86
120
|
print(f"\n {COLORS['cyan']}Example usage:{COLORS['reset']}")
|
87
121
|
print(f" {COLORS['yellow']}ngpt --cli-config set language java{COLORS['reset']} - Set default language to java for code generation")
|
@@ -111,13 +145,18 @@ def handle_cli_config(action, option=None, value=None):
|
|
111
145
|
if action == "list":
|
112
146
|
# List all available options
|
113
147
|
print(f"{COLORS['green']}{COLORS['bold']}Available CLI configuration options:{COLORS['reset']}")
|
114
|
-
for
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
148
|
+
for option_details in list_cli_config_options():
|
149
|
+
option = option_details["name"]
|
150
|
+
option_type = option_details["type"]
|
151
|
+
default = option_details["default"]
|
152
|
+
contexts = option_details["context"]
|
153
|
+
|
154
|
+
default_str = f"(default: {default})" if default is not None else "(default: None)"
|
155
|
+
contexts_str = ', '.join(contexts)
|
156
|
+
if "all" in contexts:
|
157
|
+
contexts_str = "all modes"
|
158
|
+
|
159
|
+
print(f" {COLORS['cyan']}{option}{COLORS['reset']} - {COLORS['yellow']}Type: {option_type}{COLORS['reset']} {default_str} - Available in: {contexts_str}")
|
121
160
|
return
|
122
161
|
|
123
162
|
if action == "get":
|
@@ -539,8 +578,7 @@ def main():
|
|
539
578
|
prettify=args.prettify,
|
540
579
|
renderer=args.renderer,
|
541
580
|
stream_prettify=args.stream_prettify,
|
542
|
-
logger=logger
|
543
|
-
multiline_enabled=args.multiline
|
581
|
+
logger=logger
|
544
582
|
)
|
545
583
|
elif args.shell:
|
546
584
|
# Apply CLI config for shell mode
|
ngpt/cli/modes/interactive.py
CHANGED
@@ -20,7 +20,7 @@ try:
|
|
20
20
|
except ImportError:
|
21
21
|
HAS_PROMPT_TOOLKIT = False
|
22
22
|
|
23
|
-
def interactive_chat_session(client, web_search=False, no_stream=False, temperature=0.7, top_p=1.0, max_tokens=None, preprompt=None, prettify=False, renderer='auto', stream_prettify=False, logger=None, multiline_enabled=
|
23
|
+
def interactive_chat_session(client, web_search=False, no_stream=False, temperature=0.7, top_p=1.0, max_tokens=None, preprompt=None, prettify=False, renderer='auto', stream_prettify=False, logger=None, multiline_enabled=True):
|
24
24
|
"""Start an interactive chat session with the AI.
|
25
25
|
|
26
26
|
Args:
|
ngpt/utils/cli_config.py
CHANGED
@@ -19,8 +19,6 @@ CLI_CONFIG_OPTIONS = {
|
|
19
19
|
"renderer": {"type": "str", "default": "auto", "context": ["all"]},
|
20
20
|
"config-index": {"type": "int", "default": 0, "context": ["all"], "exclusive": ["provider"]},
|
21
21
|
"web-search": {"type": "bool", "default": False, "context": ["all"]},
|
22
|
-
# Interactive mode options
|
23
|
-
"interactive-multiline": {"type": "bool", "default": False, "context": ["interactive"]},
|
24
22
|
# GitCommit message options
|
25
23
|
"rec-chunk": {"type": "bool", "default": False, "context": ["gitcommsg"]},
|
26
24
|
"diff": {"type": "str", "default": None, "context": ["gitcommsg"]},
|
@@ -245,10 +243,6 @@ def apply_cli_config(args: Any, mode: str) -> Any:
|
|
245
243
|
# Convert dashes to underscores for argparse compatibility
|
246
244
|
arg_name = option.replace("-", "_")
|
247
245
|
|
248
|
-
# Special case for interactive-multiline which maps to multiline argument
|
249
|
-
if option == "interactive-multiline":
|
250
|
-
arg_name = "multiline"
|
251
|
-
|
252
246
|
# Skip if explicitly set via command line
|
253
247
|
cli_option = f"--{option}"
|
254
248
|
if cli_option in explicit_args:
|
@@ -288,6 +282,19 @@ def apply_cli_config(args: Any, mode: str) -> Any:
|
|
288
282
|
|
289
283
|
return args
|
290
284
|
|
291
|
-
def list_cli_config_options() -> List[str]:
|
292
|
-
"""List all available CLI configuration options.
|
293
|
-
|
285
|
+
def list_cli_config_options() -> List[Dict[str, Any]]:
|
286
|
+
"""List all available CLI configuration options with their types and default values.
|
287
|
+
|
288
|
+
Returns:
|
289
|
+
List of dictionaries containing option details
|
290
|
+
"""
|
291
|
+
options_list = []
|
292
|
+
for option, details in sorted(CLI_CONFIG_OPTIONS.items()):
|
293
|
+
options_list.append({
|
294
|
+
"name": option,
|
295
|
+
"type": details["type"],
|
296
|
+
"default": details["default"],
|
297
|
+
"context": details["context"],
|
298
|
+
"exclusive": details.get("exclusive", [])
|
299
|
+
})
|
300
|
+
return options_list
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: ngpt
|
3
|
-
Version:
|
3
|
+
Version: 4.0.0
|
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,44 +281,21 @@ 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
|
-
[--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]
|
284
|
+
usage: ngpt [-h] [-v] [--api-key API_KEY] [--base-url BASE_URL] [--model MODEL] [--web-search] [--pipe]
|
287
285
|
[--temperature TEMPERATURE] [--top_p TOP_P] [--max_tokens MAX_TOKENS] [--log [FILE]]
|
288
|
-
[--preprompt PREPROMPT | --role ROLE] [--
|
286
|
+
[--preprompt PREPROMPT | --role ROLE] [--config [CONFIG]] [--config-index CONFIG_INDEX]
|
287
|
+
[--provider PROVIDER] [--remove] [--show-config] [--all] [--list-models] [--list-renderers]
|
288
|
+
[--cli-config [COMMAND ...]] [--role-config [ACTION ...]] [--no-stream | --prettify | --stream-prettify]
|
289
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] [--humanize] [
|
292
|
-
[prompt]
|
291
|
+
[--max-recursion-depth MAX_RECURSION_DEPTH] [--humanize] [-i | -s | -c | -t | -r | -g]
|
293
292
|
|
294
293
|
nGPT - Interact with AI language models via OpenAI-compatible APIs
|
295
294
|
|
296
|
-
|
297
|
-
|
298
|
-
[PROMPT] The prompt to send
|
299
|
-
|
300
|
-
options::
|
295
|
+
Global Options::
|
301
296
|
|
302
297
|
-h, --help show this help message and exit
|
303
298
|
-v, --version Show version information and exit
|
304
|
-
|
305
|
-
Configuration Options::
|
306
|
-
|
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
|
-
--config-index CONFIG_INDEX Index of the configuration to use or edit (default: 0)
|
310
|
-
--provider PROVIDER Provider name to identify the configuration to use
|
311
|
-
--remove Remove the configuration at the specified index (requires --config and
|
312
|
-
--config-index or --provider)
|
313
|
-
--show-config Show the current configuration(s) and exit
|
314
|
-
--all Show details for all configurations (requires --show-config)
|
315
|
-
--list-models List all available models for the current configuration and exit
|
316
|
-
--list-renderers Show available markdown renderers for use with --prettify
|
317
|
-
--cli-config [COMMAND ...] Manage CLI configuration (set, get, unset, list, help)
|
318
|
-
--role-config [ACTION ...] Manage custom roles (help, create, show, edit, list, remove) [role_name]
|
319
|
-
|
320
|
-
Global Options::
|
321
|
-
|
322
299
|
--api-key API_KEY API key for the service
|
323
300
|
--base-url BASE_URL Base URL for the API
|
324
301
|
--model MODEL Model to use
|
@@ -338,6 +315,21 @@ Global Options::
|
|
338
315
|
--renderer {auto,rich,glow} Select which markdown renderer to use with --prettify or --stream-prettify
|
339
316
|
(auto, rich, or glow)
|
340
317
|
|
318
|
+
Configuration Options::
|
319
|
+
|
320
|
+
--config [CONFIG] Path to a custom config file or, if no value provided, enter interactive
|
321
|
+
configuration mode to create a new config
|
322
|
+
--config-index CONFIG_INDEX Index of the configuration to use or edit (default: 0)
|
323
|
+
--provider PROVIDER Provider name to identify the configuration to use
|
324
|
+
--remove Remove the configuration at the specified index (requires --config and
|
325
|
+
--config-index or --provider)
|
326
|
+
--show-config Show the current configuration(s) and exit
|
327
|
+
--all Show details for all configurations (requires --show-config)
|
328
|
+
--list-models List all available models for the current configuration and exit
|
329
|
+
--list-renderers Show available markdown renderers for use with --prettify
|
330
|
+
--cli-config [COMMAND ...] Manage CLI configuration (set, get, unset, list, help)
|
331
|
+
--role-config [ACTION ...] Manage custom roles (help, create, show, edit, list, remove) [role_name]
|
332
|
+
|
341
333
|
Output Display Options (mutually exclusive)::
|
342
334
|
|
343
335
|
--no-stream Return the whole response without streaming or formatting
|
@@ -365,10 +357,6 @@ Rewrite Mode Options::
|
|
365
357
|
--humanize Transform AI-generated text into human-like content that passes AI detection
|
366
358
|
tools
|
367
359
|
|
368
|
-
Interactive Mode Options::
|
369
|
-
|
370
|
-
--multiline Enable multiline text input with the "ml" command in interactive mode
|
371
|
-
|
372
360
|
Modes (mutually exclusive)::
|
373
361
|
|
374
362
|
-i, --interactive Start an interactive chat session
|
@@ -455,37 +443,36 @@ CLI Configuration Help:
|
|
455
443
|
ngpt --cli-config get OPTION - Get the current value of OPTION
|
456
444
|
ngpt --cli-config get - Show all CLI configuration settings
|
457
445
|
ngpt --cli-config unset OPTION - Remove OPTION from configuration
|
458
|
-
ngpt --cli-config list - List all available options
|
446
|
+
ngpt --cli-config list - List all available options with types and defaults
|
459
447
|
|
460
448
|
Available options:
|
461
449
|
General options (all modes):
|
462
|
-
config-index - int (default: 0)
|
463
|
-
log - str
|
464
|
-
max_tokens - int
|
465
|
-
no-stream - bool (default: False)
|
466
|
-
preprompt - str
|
467
|
-
prettify - bool (default: False)
|
468
|
-
provider - str
|
469
|
-
renderer - str (default: auto)
|
470
|
-
stream-prettify - bool (default:
|
471
|
-
temperature - float (default: 0.7)
|
472
|
-
top_p - float (default: 1.0)
|
473
|
-
web-search - bool (default: False)
|
474
|
-
|
475
|
-
|
476
|
-
language - str (default: python)
|
477
|
-
|
478
|
-
|
479
|
-
analyses-chunk-size - int (default: 200)
|
480
|
-
chunk-size - int (default: 200)
|
481
|
-
diff - str
|
482
|
-
max-msg-lines - int (default: 20)
|
483
|
-
max-recursion-depth - int (default: 3)
|
484
|
-
rec-chunk - bool (default: False)
|
450
|
+
config-index - Type: int (default: 0)
|
451
|
+
log - Type: str (default: None)
|
452
|
+
max_tokens - Type: int (default: None)
|
453
|
+
no-stream - Type: bool (default: False)
|
454
|
+
preprompt - Type: str (default: None)
|
455
|
+
prettify - Type: bool (default: False)
|
456
|
+
provider - Type: str (default: None)
|
457
|
+
renderer - Type: str (default: auto)
|
458
|
+
stream-prettify - Type: bool (default: True)
|
459
|
+
temperature - Type: float (default: 0.7)
|
460
|
+
top_p - Type: float (default: 1.0)
|
461
|
+
web-search - Type: bool (default: False)
|
462
|
+
|
463
|
+
Code mode options (-c/--code):
|
464
|
+
language - Type: str (default: python)
|
465
|
+
|
466
|
+
Git commit message options (-g/--gitcommsg):
|
467
|
+
analyses-chunk-size - Type: int (default: 200)
|
468
|
+
chunk-size - Type: int (default: 200)
|
469
|
+
diff - Type: str (default: None)
|
470
|
+
max-msg-lines - Type: int (default: 20)
|
471
|
+
max-recursion-depth - Type: int (default: 3)
|
472
|
+
rec-chunk - Type: bool (default: False)
|
485
473
|
|
486
474
|
Example usage:
|
487
475
|
ngpt --cli-config set language java - Set default language to java for code generation
|
488
|
-
ngpt --cli-config set provider Gemini - Set Gemini as your default provider
|
489
476
|
ngpt --cli-config set temperature 0.9 - Set default temperature to 0.9
|
490
477
|
ngpt --cli-config set no-stream true - Disable streaming by default
|
491
478
|
ngpt --cli-config set recursive-chunk true - Enable recursive chunking for git commit messages
|
@@ -2,10 +2,10 @@ 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=0ClIMzfY_qCuIVApphPDQNb8yDz1zA83mJtJwNrsfCE,15316
|
6
6
|
ngpt/cli/config_manager.py,sha256=NQQcWnjUppAAd0s0p9YAf8EyKS1ex5-0EB4DvKdB4dk,3662
|
7
7
|
ngpt/cli/formatters.py,sha256=HBYGlx_7eoAKyzfy0Vq5L0yn8yVKjngqYBukMmXCcz0,9401
|
8
|
-
ngpt/cli/main.py,sha256=
|
8
|
+
ngpt/cli/main.py,sha256=7s-4SEylYtzd80ncT4uhcwgvnWkRSycIM9nRcPnGsEw,31111
|
9
9
|
ngpt/cli/renderers.py,sha256=vAoDkpvgG2Fl81zkJDk_-zM1Fsw8E4Uv6m1AI81Fawo,17049
|
10
10
|
ngpt/cli/roles.py,sha256=jtARS_XgZ1_UW8eAdLLMe7trpYhDnzEyCH9PYAiH-Og,9675
|
11
11
|
ngpt/cli/ui.py,sha256=8-WyPMwgQiqLXWO0mGfBhKTRnIDDtPUtm_XCvOnqBJA,11334
|
@@ -13,18 +13,18 @@ ngpt/cli/modes/__init__.py,sha256=KP7VR6Xw9k1p5Jcu0F38RDxSFvFIzH3j1ThDLNwznUI,36
|
|
13
13
|
ngpt/cli/modes/chat.py,sha256=x1leClKq7UupA_CdW4tym0AivY2o_II123-I5IcAkxQ,7091
|
14
14
|
ngpt/cli/modes/code.py,sha256=Qj59xq6fZqgUDw7SbvmPKX_gdpc7DHJhNkn1sB5qgUU,12932
|
15
15
|
ngpt/cli/modes/gitcommsg.py,sha256=qFOrll333ebFOkzLP_WD1Qw0VfpphYqeiuHumkP6OB4,54833
|
16
|
-
ngpt/cli/modes/interactive.py,sha256=
|
16
|
+
ngpt/cli/modes/interactive.py,sha256=kBs1TIaMOYR6SBWXhgK-etXxI0zYF1-g3_25zwI2DtQ,19072
|
17
17
|
ngpt/cli/modes/rewrite.py,sha256=RaN4NOItKrGy5ilRrTa2amK4zmNo59j6K7plUf5SJPM,20290
|
18
18
|
ngpt/cli/modes/shell.py,sha256=it1Brq1-LGeNfPKYBeVAwF-a78g9UP-KscofBZQkbr4,41589
|
19
19
|
ngpt/cli/modes/text.py,sha256=NOikaU9YVCBgyaCl6pwy9EVt-YY5Q4jBx0l47izpVTA,6986
|
20
20
|
ngpt/utils/__init__.py,sha256=_92f8eGMMOtQQA3uwgSRVwUEl1EIRFjWPUjcfGgI-eI,1244
|
21
|
-
ngpt/utils/cli_config.py,sha256=
|
21
|
+
ngpt/utils/cli_config.py,sha256=bP-1shJZ2Oshqpjpe0ZVNHKBRjRCFMfCYHzhwOUIHJY,11630
|
22
22
|
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-
|
27
|
-
ngpt-
|
28
|
-
ngpt-
|
29
|
-
ngpt-
|
30
|
-
ngpt-
|
26
|
+
ngpt-4.0.0.dist-info/METADATA,sha256=HgsoRiDLEWh5v0wUD9QvIQKsDCtufV5REiaF1JcAF_g,31619
|
27
|
+
ngpt-4.0.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
28
|
+
ngpt-4.0.0.dist-info/entry_points.txt,sha256=SqAAvLhMrsEpkIr4YFRdUeyuXQ9o0IBCeYgE6AVojoI,44
|
29
|
+
ngpt-4.0.0.dist-info/licenses/LICENSE,sha256=mQkpWoADxbHqE0HRefYLJdm7OpdrXBr3vNv5bZ8w72M,1065
|
30
|
+
ngpt-4.0.0.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|