ngpt 2.11.2__py3-none-any.whl → 2.11.3__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 +1 -1
- ngpt/utils/cli_config.py +6 -2
- {ngpt-2.11.2.dist-info → ngpt-2.11.3.dist-info}/METADATA +3 -3
- {ngpt-2.11.2.dist-info → ngpt-2.11.3.dist-info}/RECORD +7 -7
- {ngpt-2.11.2.dist-info → ngpt-2.11.3.dist-info}/WHEEL +0 -0
- {ngpt-2.11.2.dist-info → ngpt-2.11.3.dist-info}/entry_points.txt +0 -0
- {ngpt-2.11.2.dist-info → ngpt-2.11.3.dist-info}/licenses/LICENSE +0 -0
ngpt/cli/args.py
CHANGED
@@ -48,7 +48,7 @@ def setup_argument_parser():
|
|
48
48
|
global_group.add_argument('--model', help='Model to use')
|
49
49
|
global_group.add_argument('--web-search', action='store_true',
|
50
50
|
help='Enable web search capability (Note: Your API endpoint must support this feature)')
|
51
|
-
global_group.add_argument('
|
51
|
+
global_group.add_argument('--no-stream', action='store_true',
|
52
52
|
help='Return the whole response without streaming')
|
53
53
|
global_group.add_argument('--temperature', type=float, default=0.7,
|
54
54
|
help='Set temperature (controls randomness, default: 0.7)')
|
ngpt/utils/cli_config.py
CHANGED
@@ -206,8 +206,12 @@ def apply_cli_config(args: Any, mode: str) -> Any:
|
|
206
206
|
# Load CLI config
|
207
207
|
cli_config = load_cli_config()
|
208
208
|
|
209
|
-
# Get command-line arguments provided by the user
|
210
|
-
explicit_args = set(
|
209
|
+
# Get command-line arguments provided by the user (both long and short forms)
|
210
|
+
explicit_args = set()
|
211
|
+
for arg in sys.argv[1:]:
|
212
|
+
if arg.startswith('--'):
|
213
|
+
explicit_args.add(arg)
|
214
|
+
# We've removed -n, but this pattern would handle other short options
|
211
215
|
|
212
216
|
# Keep track of applied exclusive options
|
213
217
|
applied_exclusives = set()
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: ngpt
|
3
|
-
Version: 2.11.
|
3
|
+
Version: 2.11.3
|
4
4
|
Summary: A lightweight Python CLI and library for interacting with OpenAI-compatible APIs, supporting both official and self-hosted LLM endpoints.
|
5
5
|
Project-URL: Homepage, https://github.com/nazdridoy/ngpt
|
6
6
|
Project-URL: Repository, https://github.com/nazdridoy/ngpt
|
@@ -83,7 +83,7 @@ ngpt "Tell me about quantum computing"
|
|
83
83
|
ngpt -i
|
84
84
|
|
85
85
|
# Return response without streaming
|
86
|
-
ngpt -
|
86
|
+
ngpt --no-stream "Tell me about quantum computing"
|
87
87
|
|
88
88
|
# Generate code
|
89
89
|
ngpt --code "function to calculate the Fibonacci sequence"
|
@@ -349,7 +349,7 @@ You can configure the client using the following options:
|
|
349
349
|
| `--model` | Model to use |
|
350
350
|
| `--list-models` | List all available models for the selected configuration (can be combined with --config-index) |
|
351
351
|
| `--web-search` | Enable web search capability |
|
352
|
-
|
|
352
|
+
| `--no-stream` | Return the whole response without streaming |
|
353
353
|
| `--temperature` | Set temperature (controls randomness, default: 0.7) |
|
354
354
|
| `--top_p` | Set top_p (controls diversity, default: 1.0) |
|
355
355
|
| `--max_tokens` | Set maximum response length in tokens |
|
@@ -2,7 +2,7 @@ ngpt/__init__.py,sha256=kpKhViLakwMdHZkuLht2vWcjt0uD_5gR33gvMhfXr6w,664
|
|
2
2
|
ngpt/cli.py,sha256=j3eFYPOtCCFBOGh7NK5IWEnADnTMMSEB9GLyIDoW724,66
|
3
3
|
ngpt/client.py,sha256=Rv-JO8RAmw1v3gdLkwaPe_PEw6p83cejO0YNT_DDjeg,15134
|
4
4
|
ngpt/cli/__init__.py,sha256=hebbDSMGiOd43YNnQP67uzr67Ue6rZPwm2czynr5iZY,43
|
5
|
-
ngpt/cli/args.py,sha256=
|
5
|
+
ngpt/cli/args.py,sha256=y8bjlmxzKucx7-uVbqlqLgneIMMBTDYzgA_sxd8e-Xw,8862
|
6
6
|
ngpt/cli/config_manager.py,sha256=POjX3Asqap2N_Y6Qq0JC3OLZdzxRpFz3D0Lk19Now2U,3758
|
7
7
|
ngpt/cli/formatters.py,sha256=1ofNEWEZtFr0MJ3oWomoL_mFmZHlUdT3I5qGtbDQ4g0,9378
|
8
8
|
ngpt/cli/interactive.py,sha256=5xMMP1MuYW4jsbUEbjElE25fcJpgHVBbx2dIj8M39M8,10959
|
@@ -15,11 +15,11 @@ ngpt/cli/modes/code.py,sha256=bFE6x_CUncOM0gyAHOpcJs6nxj_ljFK0AYwJiT1Ndaw,4332
|
|
15
15
|
ngpt/cli/modes/shell.py,sha256=oqqEqWdqcH5q4pmis-hT9ZEFNk9-kaKHHdpRu217u5A,2721
|
16
16
|
ngpt/cli/modes/text.py,sha256=sUhgE5XubYxksnQDUvnCFrEbqz1G-CS_iWZZMGkULcI,3179
|
17
17
|
ngpt/utils/__init__.py,sha256=E46suk2-QgYBI0Qrs6WXOajOUOebF3ETAFY7ah8DTWs,942
|
18
|
-
ngpt/utils/cli_config.py,sha256=
|
18
|
+
ngpt/utils/cli_config.py,sha256=7T5JDQPZG_qJnRa2FJM3_hhAFWiglIeHHlkLybRXXxU,10697
|
19
19
|
ngpt/utils/config.py,sha256=WYOk_b1eiYjo6hpV3pfXr2RjqhOnmKqwZwKid1T41I4,10363
|
20
20
|
ngpt/utils/log.py,sha256=Bxv2-GbWtVYa3u94Zs_OVEvYk_CbuT5hrDH06KHLXa8,6369
|
21
|
-
ngpt-2.11.
|
22
|
-
ngpt-2.11.
|
23
|
-
ngpt-2.11.
|
24
|
-
ngpt-2.11.
|
25
|
-
ngpt-2.11.
|
21
|
+
ngpt-2.11.3.dist-info/METADATA,sha256=dNmpBqL6H1HHUKvf5i_uiRS_t45q0l2bo61SHyrA_tw,20632
|
22
|
+
ngpt-2.11.3.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
23
|
+
ngpt-2.11.3.dist-info/entry_points.txt,sha256=1cnAMujyy34DlOahrJg19lePSnb08bLbkUs_kVerqdk,39
|
24
|
+
ngpt-2.11.3.dist-info/licenses/LICENSE,sha256=mQkpWoADxbHqE0HRefYLJdm7OpdrXBr3vNv5bZ8w72M,1065
|
25
|
+
ngpt-2.11.3.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|