ngpt 2.16.7__py3-none-any.whl → 3.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 +6 -8
- ngpt/cli/main.py +3 -3
- ngpt/cli/modes/chat.py +2 -2
- ngpt/cli/modes/gitcommsg.py +55 -54
- ngpt/utils/cli_config.py +1 -2
- {ngpt-2.16.7.dist-info → ngpt-3.0.0.dist-info}/METADATA +19 -19
- {ngpt-2.16.7.dist-info → ngpt-3.0.0.dist-info}/RECORD +10 -10
- {ngpt-2.16.7.dist-info → ngpt-3.0.0.dist-info}/WHEEL +0 -0
- {ngpt-2.16.7.dist-info → ngpt-3.0.0.dist-info}/entry_points.txt +0 -0
- {ngpt-2.16.7.dist-info → ngpt-3.0.0.dist-info}/licenses/LICENSE +0 -0
ngpt/cli/args.py
CHANGED
@@ -90,9 +90,7 @@ def setup_argument_parser():
|
|
90
90
|
|
91
91
|
# GitCommit message options
|
92
92
|
gitcommsg_group = parser.add_argument_group('Git Commit Message Options')
|
93
|
-
gitcommsg_group.add_argument('-
|
94
|
-
help='Context to guide AI generation (e.g., file types, commit type)')
|
95
|
-
gitcommsg_group.add_argument('-r', '--recursive-chunk', action='store_true',
|
93
|
+
gitcommsg_group.add_argument('--rec-chunk', action='store_true',
|
96
94
|
help='Process large diffs in chunks with recursive analysis if needed')
|
97
95
|
gitcommsg_group.add_argument('--diff', metavar='FILE', nargs='?', const=True,
|
98
96
|
help='Use diff from specified file instead of staged changes. If used without a path, uses the path from CLI config.')
|
@@ -116,11 +114,11 @@ def setup_argument_parser():
|
|
116
114
|
help='Generate code')
|
117
115
|
mode_exclusive_group.add_argument('-t', '--text', action='store_true',
|
118
116
|
help='Enter multi-line text input (submit with Ctrl+D)')
|
119
|
-
mode_exclusive_group.add_argument('--
|
117
|
+
mode_exclusive_group.add_argument('-p', '--pipe', action='store_true',
|
120
118
|
help='Read from stdin and use content with prompt. Use {} in prompt as placeholder for stdin content')
|
121
|
-
mode_exclusive_group.add_argument('--rewrite', action='store_true',
|
119
|
+
mode_exclusive_group.add_argument('-r', '--rewrite', action='store_true',
|
122
120
|
help='Rewrite text from stdin to be more natural while preserving tone and meaning')
|
123
|
-
mode_exclusive_group.add_argument('--gitcommsg', action='store_true',
|
121
|
+
mode_exclusive_group.add_argument('-g', '--gitcommsg', action='store_true',
|
124
122
|
help='Generate AI-powered git commit messages from staged changes or diff file')
|
125
123
|
|
126
124
|
return parser
|
@@ -145,8 +143,8 @@ def validate_args(args):
|
|
145
143
|
raise ValueError("--stream-prettify requires Rich to be installed. Install with: pip install \"ngpt[full]\" or pip install rich")
|
146
144
|
|
147
145
|
# If stdin mode is used, check if input is available
|
148
|
-
if args.
|
149
|
-
raise ValueError("--
|
146
|
+
if args.pipe and sys.stdin.isatty():
|
147
|
+
raise ValueError("--pipe was specified but no input is piped. Use echo 'content' | ngpt --pipe 'prompt with {}'")
|
150
148
|
|
151
149
|
return args
|
152
150
|
|
ngpt/cli/main.py
CHANGED
@@ -550,11 +550,11 @@ def main():
|
|
550
550
|
# Text mode (multiline input)
|
551
551
|
text_mode(client, args, logger=logger)
|
552
552
|
|
553
|
-
elif args.
|
554
|
-
# Apply CLI config for
|
553
|
+
elif args.pipe:
|
554
|
+
# Apply CLI config for pipe mode (similar to chat mode)
|
555
555
|
args = apply_cli_config(args, "all")
|
556
556
|
|
557
|
-
#
|
557
|
+
# Pipe mode (using the chat mode with stdin input)
|
558
558
|
chat_mode(client, args, logger=logger)
|
559
559
|
|
560
560
|
elif args.rewrite:
|
ngpt/cli/modes/chat.py
CHANGED
@@ -12,8 +12,8 @@ def chat_mode(client, args, logger=None):
|
|
12
12
|
args: The parsed command-line arguments
|
13
13
|
logger: Optional logger instance
|
14
14
|
"""
|
15
|
-
# Handle
|
16
|
-
if args.
|
15
|
+
# Handle pipe mode
|
16
|
+
if args.pipe:
|
17
17
|
# Read input from stdin
|
18
18
|
stdin_content = sys.stdin.read().strip()
|
19
19
|
|
ngpt/cli/modes/gitcommsg.py
CHANGED
@@ -70,11 +70,11 @@ def split_into_chunks(content, chunk_size=200):
|
|
70
70
|
|
71
71
|
return chunks
|
72
72
|
|
73
|
-
def create_technical_analysis_system_prompt(
|
74
|
-
"""Create system prompt for technical analysis based on
|
73
|
+
def create_technical_analysis_system_prompt(preprompt=None):
|
74
|
+
"""Create system prompt for technical analysis based on preprompt data.
|
75
75
|
|
76
76
|
Args:
|
77
|
-
|
77
|
+
preprompt: The raw preprompt string from --preprompt flag
|
78
78
|
|
79
79
|
Returns:
|
80
80
|
str: System prompt for the technical analysis stage
|
@@ -102,25 +102,25 @@ RULES:
|
|
102
102
|
8. When analyzing multiple files, clearly separate each file's changes
|
103
103
|
9. Include proper technical details (method names, component identifiers, etc.)"""
|
104
104
|
|
105
|
-
# If
|
106
|
-
if
|
107
|
-
|
105
|
+
# If preprompt is provided, prepend it to the base prompt with strong wording about absolute priority
|
106
|
+
if preprompt:
|
107
|
+
preprompt_section = f"""===CRITICAL USER PREPROMPT - ABSOLUTE HIGHEST PRIORITY===
|
108
|
+
The following preprompt from the user OVERRIDES ALL OTHER INSTRUCTIONS and must be followed exactly:
|
108
109
|
|
109
|
-
|
110
|
-
The following context from the user OVERRIDES ALL OTHER INSTRUCTIONS and must be followed exactly:
|
110
|
+
{preprompt}
|
111
111
|
|
112
|
-
|
112
|
+
THIS USER PREPROMPT HAS ABSOLUTE PRIORITY over any other instructions that follow. If it contradicts other instructions, the user preprompt MUST be followed. No exceptions.
|
113
113
|
|
114
|
-
|
115
|
-
|
114
|
+
"""
|
115
|
+
return preprompt_section + base_prompt
|
116
116
|
|
117
117
|
return base_prompt
|
118
118
|
|
119
|
-
def create_system_prompt(
|
120
|
-
"""Create system prompt for commit message generation based on
|
119
|
+
def create_system_prompt(preprompt=None):
|
120
|
+
"""Create system prompt for commit message generation based on preprompt data.
|
121
121
|
|
122
122
|
Args:
|
123
|
-
|
123
|
+
preprompt: The raw preprompt string from --preprompt flag
|
124
124
|
|
125
125
|
Returns:
|
126
126
|
str: System prompt for the AI
|
@@ -188,11 +188,11 @@ refactor(core): simplify data processing pipeline
|
|
188
188
|
- [test] Update tests for new pipeline structure (tests/pipeline.test.js)
|
189
189
|
|
190
190
|
4. Multiple changes to the same file:
|
191
|
-
refactor(core): simplify
|
191
|
+
refactor(core): simplify preprompt handling for commit prompts
|
192
192
|
|
193
|
-
- [refactor] Remove
|
194
|
-
- [refactor] Update all functions to accept raw
|
195
|
-
- [refactor] Replace
|
193
|
+
- [refactor] Remove process_preprompt function (cli/modes/gitcommsg.py:69-124)
|
194
|
+
- [refactor] Update all functions to accept raw preprompt string (gitcommsg.py:create_system_prompt())
|
195
|
+
- [refactor] Replace preprompt_data usages with preprompt (gitcommsg.py)
|
196
196
|
- [docs] Update library usage doc (docs/usage/library_usage.md:516,531-537)
|
197
197
|
- [chore] Bump project version to 2.15.1 (pyproject.toml:3, uv.lock:137)
|
198
198
|
|
@@ -216,17 +216,17 @@ RULES:
|
|
216
216
|
10. Include proper technical details (method names, component identifiers, etc.)
|
217
217
|
11. When all changes are to the same file, mention it once in the summary"""
|
218
218
|
|
219
|
-
# If
|
220
|
-
if
|
221
|
-
|
219
|
+
# If preprompt is provided, prepend it with strong wording about absolute priority
|
220
|
+
if preprompt:
|
221
|
+
preprompt_section = f"""===CRITICAL USER PREPROMPT - ABSOLUTE HIGHEST PRIORITY===
|
222
|
+
The following preprompt from the user OVERRIDES ALL OTHER INSTRUCTIONS and must be followed exactly:
|
222
223
|
|
223
|
-
|
224
|
-
The following context from the user OVERRIDES ALL OTHER INSTRUCTIONS and must be followed exactly:
|
224
|
+
{preprompt}
|
225
225
|
|
226
|
-
|
226
|
+
THIS USER PREPROMPT HAS ABSOLUTE PRIORITY over any other instructions that follow. If it contradicts other instructions, the user preprompt MUST be followed. No exceptions.
|
227
227
|
|
228
|
-
|
229
|
-
|
228
|
+
"""
|
229
|
+
return preprompt_section + base_prompt
|
230
230
|
|
231
231
|
return base_prompt
|
232
232
|
|
@@ -346,11 +346,11 @@ refactor(core): simplify data processing pipeline
|
|
346
346
|
- [test] Update tests for new pipeline structure (tests/pipeline.test.js)
|
347
347
|
|
348
348
|
4. Multiple changes to the same file:
|
349
|
-
refactor(core): simplify
|
349
|
+
refactor(core): simplify preprompt handling for commit prompts
|
350
350
|
|
351
|
-
- [refactor] Remove
|
352
|
-
- [refactor] Update all functions to accept raw
|
353
|
-
- [refactor] Replace
|
351
|
+
- [refactor] Remove process_preprompt function (cli/modes/gitcommsg.py:69-124)
|
352
|
+
- [refactor] Update all functions to accept raw preprompt string (gitcommsg.py:create_system_prompt())
|
353
|
+
- [refactor] Replace preprompt_data usages with preprompt (gitcommsg.py)
|
354
354
|
- [docs] Update library usage doc (docs/usage/library_usage.md:516,531-537)
|
355
355
|
- [chore] Bump project version to 2.15.1 (pyproject.toml:3, uv.lock:137)
|
356
356
|
|
@@ -444,13 +444,13 @@ def handle_api_call(client, prompt, system_prompt=None, logger=None, max_retries
|
|
444
444
|
# Exponential backoff
|
445
445
|
wait_seconds *= 2
|
446
446
|
|
447
|
-
def process_with_chunking(client, diff_content,
|
447
|
+
def process_with_chunking(client, diff_content, preprompt, chunk_size=200, recursive=False, logger=None, max_msg_lines=20, max_recursion_depth=3, analyses_chunk_size=None):
|
448
448
|
"""Process diff with chunking to handle large diffs.
|
449
449
|
|
450
450
|
Args:
|
451
451
|
client: The NGPTClient instance
|
452
452
|
diff_content: The diff content to process
|
453
|
-
|
453
|
+
preprompt: The raw preprompt string
|
454
454
|
chunk_size: Maximum number of lines per chunk
|
455
455
|
recursive: Whether to use recursive chunking
|
456
456
|
logger: Optional logger instance
|
@@ -466,8 +466,8 @@ def process_with_chunking(client, diff_content, context, chunk_size=200, recursi
|
|
466
466
|
analyses_chunk_size = chunk_size
|
467
467
|
|
468
468
|
# Create different system prompts for different stages
|
469
|
-
technical_system_prompt = create_technical_analysis_system_prompt(
|
470
|
-
commit_system_prompt = create_system_prompt(
|
469
|
+
technical_system_prompt = create_technical_analysis_system_prompt(preprompt)
|
470
|
+
commit_system_prompt = create_system_prompt(preprompt)
|
471
471
|
|
472
472
|
# Log initial diff content
|
473
473
|
if logger:
|
@@ -547,7 +547,7 @@ def process_with_chunking(client, diff_content, context, chunk_size=200, recursi
|
|
547
547
|
return recursive_chunk_analysis(
|
548
548
|
client,
|
549
549
|
combined_analyses,
|
550
|
-
|
550
|
+
preprompt,
|
551
551
|
analyses_chunk_size,
|
552
552
|
logger,
|
553
553
|
max_msg_lines,
|
@@ -601,13 +601,13 @@ def process_with_chunking(client, diff_content, context, chunk_size=200, recursi
|
|
601
601
|
logger.error(f"Error combining analyses: {str(e)}")
|
602
602
|
return None
|
603
603
|
|
604
|
-
def recursive_chunk_analysis(client, combined_analysis,
|
604
|
+
def recursive_chunk_analysis(client, combined_analysis, preprompt, chunk_size, logger=None, max_msg_lines=20, max_recursion_depth=3, current_depth=1):
|
605
605
|
"""Recursively chunk and process large analysis results until they're small enough.
|
606
606
|
|
607
607
|
Args:
|
608
608
|
client: The NGPTClient instance
|
609
609
|
combined_analysis: The combined analysis to process
|
610
|
-
|
610
|
+
preprompt: The raw preprompt string
|
611
611
|
chunk_size: Maximum number of lines per chunk
|
612
612
|
logger: Optional logger instance
|
613
613
|
max_msg_lines: Maximum number of lines in commit message before condensing
|
@@ -618,8 +618,8 @@ def recursive_chunk_analysis(client, combined_analysis, context, chunk_size, log
|
|
618
618
|
str: Generated commit message
|
619
619
|
"""
|
620
620
|
# Create different system prompts for different stages
|
621
|
-
technical_system_prompt = create_technical_analysis_system_prompt(
|
622
|
-
commit_system_prompt = create_system_prompt(
|
621
|
+
technical_system_prompt = create_technical_analysis_system_prompt(preprompt)
|
622
|
+
commit_system_prompt = create_system_prompt(preprompt)
|
623
623
|
|
624
624
|
print(f"\n{COLORS['cyan']}Recursive analysis chunking level {current_depth}...{COLORS['reset']}")
|
625
625
|
|
@@ -767,7 +767,7 @@ SECTION OF ANALYSIS TO CONDENSE:
|
|
767
767
|
return recursive_chunk_analysis(
|
768
768
|
client,
|
769
769
|
combined_condensed,
|
770
|
-
|
770
|
+
preprompt,
|
771
771
|
chunk_size,
|
772
772
|
logger,
|
773
773
|
max_msg_lines,
|
@@ -948,11 +948,11 @@ BULLET POINT FORMAT:
|
|
948
948
|
- Not: "- feat: Add new login component" (incorrect)
|
949
949
|
|
950
950
|
EXAMPLE OF PROPERLY FORMATTED COMMIT MESSAGE:
|
951
|
-
refactor(core): simplify
|
951
|
+
refactor(core): simplify preprompt handling for commit prompts
|
952
952
|
|
953
|
-
- [refactor] Remove
|
954
|
-
- [refactor] Update all functions to accept raw
|
955
|
-
- [refactor] Replace
|
953
|
+
- [refactor] Remove process_preprompt function (cli/modes/gitcommsg.py:69-124)
|
954
|
+
- [refactor] Update all functions to accept raw preprompt string (gitcommsg.py:create_system_prompt())
|
955
|
+
- [refactor] Replace preprompt_data usages with preprompt (gitcommsg.py)
|
956
956
|
- [docs] Update library usage doc (docs/usage/library_usage.md:516,531-537)
|
957
957
|
- [chore] Bump project version to 2.15.1 (pyproject.toml:3, uv.lock:137)
|
958
958
|
|
@@ -1025,17 +1025,17 @@ def gitcommsg_mode(client, args, logger=None):
|
|
1025
1025
|
if active_logger:
|
1026
1026
|
active_logger.log_diff("DEBUG", diff_content)
|
1027
1027
|
|
1028
|
-
# Process
|
1029
|
-
|
1030
|
-
if args.
|
1031
|
-
|
1028
|
+
# Process preprompt if provided
|
1029
|
+
preprompt = None
|
1030
|
+
if args.preprompt:
|
1031
|
+
preprompt = args.preprompt
|
1032
1032
|
if active_logger:
|
1033
|
-
active_logger.debug(f"Using
|
1034
|
-
active_logger.log_content("DEBUG", "
|
1033
|
+
active_logger.debug(f"Using preprompt: {preprompt}")
|
1034
|
+
active_logger.log_content("DEBUG", "PREPROMPT", preprompt)
|
1035
1035
|
|
1036
1036
|
# Create system prompts for different stages
|
1037
|
-
technical_system_prompt = create_technical_analysis_system_prompt(
|
1038
|
-
commit_system_prompt = create_system_prompt(
|
1037
|
+
technical_system_prompt = create_technical_analysis_system_prompt(preprompt)
|
1038
|
+
commit_system_prompt = create_system_prompt(preprompt)
|
1039
1039
|
|
1040
1040
|
# Log system prompts
|
1041
1041
|
if active_logger:
|
@@ -1066,7 +1066,7 @@ def gitcommsg_mode(client, args, logger=None):
|
|
1066
1066
|
if active_logger:
|
1067
1067
|
active_logger.info(f"Analyses chunk size: {analyses_chunk_size}")
|
1068
1068
|
|
1069
|
-
if args.
|
1069
|
+
if args.rec_chunk:
|
1070
1070
|
# Use chunking with recursive processing
|
1071
1071
|
if active_logger:
|
1072
1072
|
active_logger.info(f"Using recursive chunking with max_recursion_depth: {max_recursion_depth}")
|
@@ -1074,7 +1074,7 @@ def gitcommsg_mode(client, args, logger=None):
|
|
1074
1074
|
result = process_with_chunking(
|
1075
1075
|
client,
|
1076
1076
|
diff_content,
|
1077
|
-
|
1077
|
+
preprompt,
|
1078
1078
|
chunk_size=args.chunk_size,
|
1079
1079
|
recursive=True,
|
1080
1080
|
logger=active_logger,
|
@@ -1087,6 +1087,7 @@ def gitcommsg_mode(client, args, logger=None):
|
|
1087
1087
|
if active_logger:
|
1088
1088
|
active_logger.info("Processing without chunking")
|
1089
1089
|
|
1090
|
+
# Pass preprompt to create_final_prompt
|
1090
1091
|
prompt = create_final_prompt(diff_content)
|
1091
1092
|
|
1092
1093
|
# Log final template
|
ngpt/utils/cli_config.py
CHANGED
@@ -20,8 +20,7 @@ CLI_CONFIG_OPTIONS = {
|
|
20
20
|
"config-index": {"type": "int", "default": 0, "context": ["all"], "exclusive": ["provider"]},
|
21
21
|
"web-search": {"type": "bool", "default": False, "context": ["all"]},
|
22
22
|
# GitCommit message options
|
23
|
-
"
|
24
|
-
"recursive-chunk": {"type": "bool", "default": False, "context": ["gitcommsg"]},
|
23
|
+
"rec-chunk": {"type": "bool", "default": False, "context": ["gitcommsg"]},
|
25
24
|
"diff": {"type": "str", "default": None, "context": ["gitcommsg"]},
|
26
25
|
"chunk-size": {"type": "int", "default": 200, "context": ["gitcommsg"]},
|
27
26
|
"analyses-chunk-size": {"type": "int", "default": 200, "context": ["gitcommsg"]},
|
@@ -1,7 +1,7 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: ngpt
|
3
|
-
Version:
|
4
|
-
Summary: Swiss army knife for LLMs: powerful CLI, interactive chatbot, and flexible Python library. Works with OpenAI, Ollama, Groq, Claude, and any OpenAI-compatible API.
|
3
|
+
Version: 3.0.0
|
4
|
+
Summary: Swiss army knife for LLMs: powerful CLI, interactive chatbot, and flexible Python library. Works with OpenAI, Ollama, Groq, Claude, Gemini, and any OpenAI-compatible API.
|
5
5
|
Project-URL: Homepage, https://github.com/nazdridoy/ngpt
|
6
6
|
Project-URL: Repository, https://github.com/nazdridoy/ngpt
|
7
7
|
Project-URL: Bug Tracker, https://github.com/nazdridoy/ngpt/issues
|
@@ -36,7 +36,7 @@ Description-Content-Type: text/markdown
|
|
36
36
|
|
37
37
|
# nGPT
|
38
38
|
|
39
|
-
🤖 nGPT: A Swiss army knife for LLMs: powerful CLI, interactive chatbot, and flexible library all in one package. Seamlessly work with OpenAI, Ollama, Groq, Claude, or any OpenAI-compatible API to generate code, craft git commits, rewrite text, and execute shell commands. Fast, lightweight, and designed for both casual users and developers.
|
39
|
+
🤖 nGPT: A Swiss army knife for LLMs: powerful CLI, interactive chatbot, and flexible library all in one package. Seamlessly work with OpenAI, Ollama, Groq, Claude, Gemini, or any OpenAI-compatible API to generate code, craft git commits, rewrite text, and execute shell commands. Fast, lightweight, and designed for both casual users and developers.
|
40
40
|
|
41
41
|
[](https://pypi.org/project/ngpt/)
|
42
42
|
[](https://opensource.org/licenses/MIT)
|
@@ -109,34 +109,34 @@ ngpt --code --stream-prettify "function to calculate the Fibonacci sequence"
|
|
109
109
|
ngpt --shell "list all files in the current directory"
|
110
110
|
|
111
111
|
# Read from stdin and use the content in your prompt
|
112
|
-
echo "What is this text about?" | ngpt
|
112
|
+
echo "What is this text about?" | ngpt -p "Analyze the following text: {}"
|
113
113
|
|
114
114
|
# Rewrite text to improve quality while preserving tone and meaning
|
115
|
-
echo "your text" | ngpt
|
115
|
+
echo "your text" | ngpt -r
|
116
116
|
|
117
117
|
# Rewrite text from a command-line argument
|
118
|
-
ngpt
|
118
|
+
ngpt -r "your text to rewrite"
|
119
119
|
|
120
120
|
# Rewrite text from a file
|
121
|
-
cat file.txt | ngpt
|
121
|
+
cat file.txt | ngpt -r
|
122
122
|
|
123
123
|
# Generate AI-powered git commit messages for staged changes
|
124
|
-
ngpt
|
124
|
+
ngpt -g
|
125
125
|
|
126
|
-
# Generate commit message with context
|
127
|
-
ngpt --
|
126
|
+
# Generate commit message from staged changes with a context directive
|
127
|
+
ngpt -g --preprompt "type:feat"
|
128
128
|
|
129
129
|
# Process large diffs in chunks with recursive analysis
|
130
|
-
ngpt --
|
130
|
+
ngpt -g --rec-chunk
|
131
131
|
|
132
132
|
# Process a diff file instead of staged changes
|
133
|
-
ngpt
|
133
|
+
ngpt -g --diff /path/to/changes.diff
|
134
134
|
|
135
135
|
# Generate a commit message with logging for debugging
|
136
|
-
ngpt
|
136
|
+
ngpt -g --log commit_log.txt
|
137
137
|
|
138
138
|
# Use interactive multiline editor to enter text to rewrite
|
139
|
-
ngpt
|
139
|
+
ngpt -r
|
140
140
|
|
141
141
|
# Display markdown responses with beautiful formatting
|
142
142
|
ngpt --prettify "Explain markdown syntax with examples"
|
@@ -160,7 +160,7 @@ ngpt --interactive --log conversation.log
|
|
160
160
|
ngpt --log "Tell me about quantum computing"
|
161
161
|
|
162
162
|
# Process text from stdin using the {} placeholder
|
163
|
-
cat README.md | ngpt
|
163
|
+
cat README.md | ngpt -p "Summarize this document: {}"
|
164
164
|
|
165
165
|
# Use different model providers by specifying the provider name
|
166
166
|
ngpt --provider Groq "Explain quantum computing"
|
@@ -176,7 +176,7 @@ For more examples and detailed usage, visit the [CLI Usage Guide](https://nazdri
|
|
176
176
|
|
177
177
|
- ✅ **Versatile**: Use as a CLI tool, Python library, or CLI framework for building custom tools
|
178
178
|
- 🪶 **Lightweight**: Minimal dependencies with everything you need included
|
179
|
-
- 🔄 **API Flexibility**: Works with OpenAI, Ollama, Groq, Claude, and any compatible endpoint
|
179
|
+
- 🔄 **API Flexibility**: Works with OpenAI, Ollama, Groq, Claude, Gemini, and any compatible endpoint
|
180
180
|
- 💬 **Interactive Chat**: Continuous conversation with memory in modern UI
|
181
181
|
- 📊 **Streaming Responses**: Real-time output for better user experience
|
182
182
|
- 🔍 **Web Search**: Integrated with compatible API endpoints
|
@@ -442,9 +442,9 @@ You can configure nGPT using the following options:
|
|
442
442
|
| `-s, --shell` | Generate and execute shell commands appropriate for your operating system |
|
443
443
|
| `-c, --code` | Generate clean code without markdown formatting or explanations |
|
444
444
|
| `-t, --text` | Open interactive multiline editor for complex prompts with syntax highlighting |
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
445
|
+
| `-p, --pipe` | Read from stdin and use content with prompt. Use {} in prompt as placeholder for stdin content |
|
446
|
+
| `-r, --rewrite` | Rewrite text to improve quality while preserving original tone and meaning |
|
447
|
+
| `-g, --gitcommsg` | Generate AI-powered git commit messages from staged changes or diff files |
|
448
448
|
|
449
449
|
#### Global Options
|
450
450
|
|
@@ -2,26 +2,26 @@ ngpt/__init__.py,sha256=kpKhViLakwMdHZkuLht2vWcjt0uD_5gR33gvMhfXr6w,664
|
|
2
2
|
ngpt/__main__.py,sha256=j3eFYPOtCCFBOGh7NK5IWEnADnTMMSEB9GLyIDoW724,66
|
3
3
|
ngpt/client.py,sha256=rLgDPmJe8_yi13-XUiHJ45z54rJVrupxWmeb-fQZGF4,15129
|
4
4
|
ngpt/cli/__init__.py,sha256=hebbDSMGiOd43YNnQP67uzr67Ue6rZPwm2czynr5iZY,43
|
5
|
-
ngpt/cli/args.py,sha256=
|
5
|
+
ngpt/cli/args.py,sha256=XQvofZs_WkbgUto3Dbx7Yw-AmPAQHh8kdHUe3uWy8w4,11382
|
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/interactive.py,sha256=oLflfYVSX_NdYb5D8BsEeYr2m_6yWw06Rw-BS5tLqkI,12923
|
9
|
-
ngpt/cli/main.py,sha256=
|
9
|
+
ngpt/cli/main.py,sha256=rIGbsr1wll4fJhAmPx8C9fCJYlhKijdHqal9e3NC2I8,28908
|
10
10
|
ngpt/cli/renderers.py,sha256=yYt3b_cWUYckfgLQ1wkEiQCnq5v5m7hfn5PWxHJzR9Y,12422
|
11
11
|
ngpt/cli/ui.py,sha256=m8qtd4cCSHBGHPUlHVdBEfun1G1Se4vLKTSgnS7QOKE,6775
|
12
12
|
ngpt/cli/modes/__init__.py,sha256=R3aO662RIzWEOvr3moTrEI8Tpg0zDDyMGGh1-OxiRgM,285
|
13
|
-
ngpt/cli/modes/chat.py,sha256
|
13
|
+
ngpt/cli/modes/chat.py,sha256=ULSIFach3Namb3FQBhgACxhHXME-fX7bLBDum9JQfks,5699
|
14
14
|
ngpt/cli/modes/code.py,sha256=1EeiooyNe1jvTyNu6r0J9xY34QXb2uBQKPeNca-DrRI,5734
|
15
|
-
ngpt/cli/modes/gitcommsg.py,sha256=
|
15
|
+
ngpt/cli/modes/gitcommsg.py,sha256=rsfMoeOupmNp-5p5fsMSPAf18BbzXWq-4PF2HjEz6SY,46991
|
16
16
|
ngpt/cli/modes/rewrite.py,sha256=iEMn6i6cuaxOiKq886Lsh961riCmPj5K1mXVQeT2Z7k,10112
|
17
17
|
ngpt/cli/modes/shell.py,sha256=QkprnOxMMTg2v5DIwcofDnnr3JPNfuk-YgSQaae5Xps,3311
|
18
18
|
ngpt/cli/modes/text.py,sha256=z08xaW2r0XzyunUzBhwZKqnwPjyRol_CSazjLygmLRs,4514
|
19
19
|
ngpt/utils/__init__.py,sha256=E46suk2-QgYBI0Qrs6WXOajOUOebF3ETAFY7ah8DTWs,942
|
20
|
-
ngpt/utils/cli_config.py,sha256=
|
20
|
+
ngpt/utils/cli_config.py,sha256=IlHnOEEGpLoGZInynM778wgpxLVcJ_STKWxg2Ypvir4,11196
|
21
21
|
ngpt/utils/config.py,sha256=WYOk_b1eiYjo6hpV3pfXr2RjqhOnmKqwZwKid1T41I4,10363
|
22
22
|
ngpt/utils/log.py,sha256=f1jg2iFo35PAmsarH8FVL_62plq4VXH0Mu2QiP6RJGw,15934
|
23
|
-
ngpt-
|
24
|
-
ngpt-
|
25
|
-
ngpt-
|
26
|
-
ngpt-
|
27
|
-
ngpt-
|
23
|
+
ngpt-3.0.0.dist-info/METADATA,sha256=Z_LHyn3LPCO9Y34sPuCsPYO8oerkiX-0aSvZCmezHuA,25461
|
24
|
+
ngpt-3.0.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
25
|
+
ngpt-3.0.0.dist-info/entry_points.txt,sha256=SqAAvLhMrsEpkIr4YFRdUeyuXQ9o0IBCeYgE6AVojoI,44
|
26
|
+
ngpt-3.0.0.dist-info/licenses/LICENSE,sha256=mQkpWoADxbHqE0HRefYLJdm7OpdrXBr3vNv5bZ8w72M,1065
|
27
|
+
ngpt-3.0.0.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|