ngpt 2.16.5__py3-none-any.whl → 2.16.7__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/modes/rewrite.py +0 -2
- ngpt/cli/modes/text.py +0 -2
- ngpt/cli/renderers.py +9 -3
- {ngpt-2.16.5.dist-info → ngpt-2.16.7.dist-info}/METADATA +11 -11
- {ngpt-2.16.5.dist-info → ngpt-2.16.7.dist-info}/RECORD +8 -8
- {ngpt-2.16.5.dist-info → ngpt-2.16.7.dist-info}/WHEEL +0 -0
- {ngpt-2.16.5.dist-info → ngpt-2.16.7.dist-info}/entry_points.txt +0 -0
- {ngpt-2.16.5.dist-info → ngpt-2.16.7.dist-info}/licenses/LICENSE +0 -0
ngpt/cli/modes/rewrite.py
CHANGED
@@ -131,8 +131,6 @@ def rewrite_mode(client, args, logger=None):
|
|
131
131
|
{"role": "user", "content": input_text}
|
132
132
|
]
|
133
133
|
|
134
|
-
print("\nSubmission successful. Waiting for response...")
|
135
|
-
|
136
134
|
# Log the messages if logging is enabled
|
137
135
|
if logger:
|
138
136
|
logger.log("system", REWRITE_SYSTEM_PROMPT)
|
ngpt/cli/modes/text.py
CHANGED
ngpt/cli/renderers.py
CHANGED
@@ -239,8 +239,14 @@ def prettify_streaming_markdown(renderer='rich', is_interactive=False, header_te
|
|
239
239
|
else:
|
240
240
|
md_obj = Markdown("")
|
241
241
|
|
242
|
-
# Initialize the Live display with
|
243
|
-
live = Live(
|
242
|
+
# Initialize the Live display with vertical overflow handling
|
243
|
+
live = Live(
|
244
|
+
md_obj,
|
245
|
+
console=console,
|
246
|
+
refresh_per_second=10,
|
247
|
+
auto_refresh=False,
|
248
|
+
vertical_overflow="visible" # Attempt to make overflow visible
|
249
|
+
)
|
244
250
|
|
245
251
|
# Track if this is the first content update
|
246
252
|
first_update = True
|
@@ -259,7 +265,7 @@ def prettify_streaming_markdown(renderer='rich', is_interactive=False, header_te
|
|
259
265
|
sys.stdout.flush()
|
260
266
|
live.start()
|
261
267
|
|
262
|
-
# Update content
|
268
|
+
# Update content in live display
|
263
269
|
if is_interactive and header_text:
|
264
270
|
# Update the panel content
|
265
271
|
md_obj.renderable = Markdown(content)
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: ngpt
|
3
|
-
Version: 2.16.
|
3
|
+
Version: 2.16.7
|
4
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.
|
5
5
|
Project-URL: Homepage, https://github.com/nazdridoy/ngpt
|
6
6
|
Project-URL: Repository, https://github.com/nazdridoy/ngpt
|
@@ -40,9 +40,12 @@ Description-Content-Type: text/markdown
|
|
40
40
|
|
41
41
|
[](https://pypi.org/project/ngpt/)
|
42
42
|
[](https://opensource.org/licenses/MIT)
|
43
|
-
[](https://pypi.org/project/ngpt/)
|
44
43
|
[](https://nazdridoy.github.io/ngpt/)
|
45
|
-
|
44
|
+
[](https://nazdridoy.github.io/ngpt/installation.html)
|
45
|
+
[](https://nazdridoy.github.io/ngpt/installation.html)
|
46
|
+
[](https://nazdridoy.github.io/ngpt/installation.html)
|
47
|
+
[](https://nazdridoy.github.io/ngpt/installation.html)
|
48
|
+
[](https://pypi.org/project/ngpt/)
|
46
49
|
|
47
50
|

|
48
51
|
|
@@ -243,21 +246,18 @@ ngpt --interactive --log conversation.log
|
|
243
246
|
# Use custom system prompt to guide AI behavior
|
244
247
|
ngpt --preprompt "You are a Python programming tutor" "Explain decorators"
|
245
248
|
|
246
|
-
# Show
|
247
|
-
ngpt -v
|
248
|
-
|
249
|
-
# Show active configuration
|
250
|
-
ngpt --show-config
|
251
|
-
|
252
|
-
# Show all configurations
|
249
|
+
# Show all API configurations
|
253
250
|
ngpt --show-config --all
|
254
251
|
|
255
252
|
# List available models for the active configuration
|
256
253
|
ngpt --list-models
|
257
254
|
|
258
|
-
# List models for a specific configuration
|
255
|
+
# List models for a specific configuration (index)
|
259
256
|
ngpt --list-models --config-index 1
|
260
257
|
|
258
|
+
# List models for a specific configuration (provider)
|
259
|
+
ngpt --list-models --provider Gemini
|
260
|
+
|
261
261
|
# With custom options
|
262
262
|
ngpt --api-key your-key --base-url http://your-endpoint --model your-model "Hello"
|
263
263
|
|
@@ -7,21 +7,21 @@ ngpt/cli/config_manager.py,sha256=NQQcWnjUppAAd0s0p9YAf8EyKS1ex5-0EB4DvKdB4dk,36
|
|
7
7
|
ngpt/cli/formatters.py,sha256=HBYGlx_7eoAKyzfy0Vq5L0yn8yVKjngqYBukMmXCcz0,9401
|
8
8
|
ngpt/cli/interactive.py,sha256=oLflfYVSX_NdYb5D8BsEeYr2m_6yWw06Rw-BS5tLqkI,12923
|
9
9
|
ngpt/cli/main.py,sha256=6GO4r9e9su7FFukj9JeVmJt1bJsqPOJBj6xo3iyMZXU,28911
|
10
|
-
ngpt/cli/renderers.py,sha256=
|
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
13
|
ngpt/cli/modes/chat.py,sha256=-g8hMHkn9Dv3iGFZvbXXFQwG8KsXEgngr6Si9AUdQXE,5701
|
14
14
|
ngpt/cli/modes/code.py,sha256=1EeiooyNe1jvTyNu6r0J9xY34QXb2uBQKPeNca-DrRI,5734
|
15
15
|
ngpt/cli/modes/gitcommsg.py,sha256=Bhgg9UArrfRUwosgVlNLUB7i1B8j-1ngpkmCm5iZBkM,46786
|
16
|
-
ngpt/cli/modes/rewrite.py,sha256=
|
16
|
+
ngpt/cli/modes/rewrite.py,sha256=iEMn6i6cuaxOiKq886Lsh961riCmPj5K1mXVQeT2Z7k,10112
|
17
17
|
ngpt/cli/modes/shell.py,sha256=QkprnOxMMTg2v5DIwcofDnnr3JPNfuk-YgSQaae5Xps,3311
|
18
|
-
ngpt/cli/modes/text.py,sha256=
|
18
|
+
ngpt/cli/modes/text.py,sha256=z08xaW2r0XzyunUzBhwZKqnwPjyRol_CSazjLygmLRs,4514
|
19
19
|
ngpt/utils/__init__.py,sha256=E46suk2-QgYBI0Qrs6WXOajOUOebF3ETAFY7ah8DTWs,942
|
20
20
|
ngpt/utils/cli_config.py,sha256=tQxR3a2iXyc5TfRBPQHSUXPInO2dv_zTPGn04eWfmoo,11285
|
21
21
|
ngpt/utils/config.py,sha256=WYOk_b1eiYjo6hpV3pfXr2RjqhOnmKqwZwKid1T41I4,10363
|
22
22
|
ngpt/utils/log.py,sha256=f1jg2iFo35PAmsarH8FVL_62plq4VXH0Mu2QiP6RJGw,15934
|
23
|
-
ngpt-2.16.
|
24
|
-
ngpt-2.16.
|
25
|
-
ngpt-2.16.
|
26
|
-
ngpt-2.16.
|
27
|
-
ngpt-2.16.
|
23
|
+
ngpt-2.16.7.dist-info/METADATA,sha256=VWaC8qsuVQS5Qb4ZwDB5lo-7ToRmCBOCx_XYLMEdMrE,25460
|
24
|
+
ngpt-2.16.7.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
25
|
+
ngpt-2.16.7.dist-info/entry_points.txt,sha256=SqAAvLhMrsEpkIr4YFRdUeyuXQ9o0IBCeYgE6AVojoI,44
|
26
|
+
ngpt-2.16.7.dist-info/licenses/LICENSE,sha256=mQkpWoADxbHqE0HRefYLJdm7OpdrXBr3vNv5bZ8w72M,1065
|
27
|
+
ngpt-2.16.7.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|