ngpt 2.16.0__py3-none-any.whl → 2.16.2__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 +10 -8
- {ngpt-2.16.0.dist-info → ngpt-2.16.2.dist-info}/METADATA +34 -2
- {ngpt-2.16.0.dist-info → ngpt-2.16.2.dist-info}/RECORD +6 -6
- {ngpt-2.16.0.dist-info → ngpt-2.16.2.dist-info}/WHEEL +0 -0
- {ngpt-2.16.0.dist-info → ngpt-2.16.2.dist-info}/entry_points.txt +0 -0
- {ngpt-2.16.0.dist-info → ngpt-2.16.2.dist-info}/licenses/LICENSE +0 -0
ngpt/cli/modes/rewrite.py
CHANGED
@@ -17,6 +17,15 @@ PRESERVATION RULES (HIGHEST PRIORITY):
|
|
17
17
|
4. Respect the style of expression when intentional
|
18
18
|
5. Retain technical terminology, jargon, and domain-specific language
|
19
19
|
6. Keep all facts, data points, quotes, and references exactly as provided
|
20
|
+
7. Preserve all @ mentions (like @username) exactly as written
|
21
|
+
|
22
|
+
FORMAT PRESERVATION:
|
23
|
+
1. Maintain all paragraph breaks and section structures
|
24
|
+
2. Preserve formatting of lists, bullet points, and numbering
|
25
|
+
3. Keep code blocks (```) exactly as they appear with no changes to code
|
26
|
+
4. Respect all markdown formatting (bold, italic, headers, etc.)
|
27
|
+
5. Preserve URLs, email addresses, file paths, variables, and @ mentions exactly
|
28
|
+
6. Maintain the structure of tables and other special formats
|
20
29
|
|
21
30
|
IMPROVEMENT FOCUS:
|
22
31
|
1. Fix grammar, spelling, and punctuation errors
|
@@ -28,14 +37,6 @@ IMPROVEMENT FOCUS:
|
|
28
37
|
7. Convert passive voice to active when appropriate
|
29
38
|
8. Remove redundancies, filler words, and unnecessary repetition
|
30
39
|
|
31
|
-
FORMAT PRESERVATION:
|
32
|
-
1. Maintain all paragraph breaks and section structures
|
33
|
-
2. Preserve formatting of lists, bullet points, and numbering
|
34
|
-
3. Keep code blocks (```) exactly as they appear with no changes to code
|
35
|
-
4. Respect all markdown formatting (bold, italic, headers, etc.)
|
36
|
-
5. Preserve URLs, email addresses, file paths, and variables exactly
|
37
|
-
6. Maintain the structure of tables and other special formats
|
38
|
-
|
39
40
|
CONTENT-SPECIFIC GUIDANCE:
|
40
41
|
- For technical content: Prioritize precision and clarity over stylistic changes
|
41
42
|
- For casual text: Maintain conversational flow and personality
|
@@ -50,6 +51,7 @@ STRICTLY AVOID:
|
|
50
51
|
5. Explaining what you changed (just provide the improved text)
|
51
52
|
6. Altering the meaning of any sentence, even slightly
|
52
53
|
7. Changing domain-specific terminology or jargon to general terms
|
54
|
+
8. Modifying or removing @ mentions, hashtags, or issue references (like #123)
|
53
55
|
|
54
56
|
OUTPUT INSTRUCTION:
|
55
57
|
Provide ONLY the rewritten text with no explanations, comments, or meta-text.
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: ngpt
|
3
|
-
Version: 2.16.
|
3
|
+
Version: 2.16.2
|
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
|
@@ -41,7 +41,7 @@ Description-Content-Type: text/markdown
|
|
41
41
|
[](https://pypi.org/project/ngpt/)
|
42
42
|
[](https://nazdridoy.github.io/ngpt/)
|
43
43
|
|
44
|
-
A
|
44
|
+
A versatile Python LLM client that functions as a CLI utility, library, and development framework. Supports multiple providers (OpenAI, Ollama, Groq, Claude) with features including interactive chat, code generation, shell command execution, git commit messages generation, and markdown rendering.
|
45
45
|
|
46
46
|

|
47
47
|
|
@@ -62,6 +62,9 @@ A lightweight Python CLI and library for interacting with OpenAI-compatible APIs
|
|
62
62
|
- [Interactive Configuration](#interactive-configuration)
|
63
63
|
- [Configuration File](#configuration-file)
|
64
64
|
- [Configuration Priority](#configuration-priority)
|
65
|
+
- [API Key Setup](#api-key-setup)
|
66
|
+
- [OpenAI API Key](#openai-api-key)
|
67
|
+
- [Google Gemini API Key](#google-gemini-api-key)
|
65
68
|
- [Contributing](#contributing)
|
66
69
|
- [License](#license)
|
67
70
|
|
@@ -397,6 +400,35 @@ For detailed information about building CLI tools with nGPT, see the [CLI Framew
|
|
397
400
|
|
398
401
|
## Configuration
|
399
402
|
|
403
|
+
### API Key Setup
|
404
|
+
|
405
|
+
#### OpenAI API Key
|
406
|
+
1. Create an account at [OpenAI](https://platform.openai.com/)
|
407
|
+
2. Navigate to API keys: https://platform.openai.com/api-keys
|
408
|
+
3. Click "Create new secret key" and copy your API key
|
409
|
+
4. Configure nGPT with your key:
|
410
|
+
```bash
|
411
|
+
ngpt --config
|
412
|
+
# Enter provider: OpenAI
|
413
|
+
# Enter API key: your-openai-api-key
|
414
|
+
# Enter base URL: https://api.openai.com/v1/
|
415
|
+
# Enter model: gpt-3.5-turbo (or other model)
|
416
|
+
```
|
417
|
+
|
418
|
+
#### Google Gemini API Key
|
419
|
+
1. Create or use an existing Google account
|
420
|
+
2. Go to [Google AI Studio](https://aistudio.google.com/)
|
421
|
+
3. Navigate to API keys in the left sidebar (or visit https://aistudio.google.com/app/apikey)
|
422
|
+
4. Create an API key and copy it
|
423
|
+
5. Configure nGPT with your key:
|
424
|
+
```bash
|
425
|
+
ngpt --config
|
426
|
+
# Enter provider: Gemini
|
427
|
+
# Enter API key: your-gemini-api-key
|
428
|
+
# Enter base URL: https://generativelanguage.googleapis.com/v1beta/openai
|
429
|
+
# Enter model: gemini-2.0-flash
|
430
|
+
```
|
431
|
+
|
400
432
|
### Command Line Options
|
401
433
|
|
402
434
|
You can configure nGPT using the following options:
|
@@ -13,15 +13,15 @@ ngpt/cli/modes/__init__.py,sha256=R3aO662RIzWEOvr3moTrEI8Tpg0zDDyMGGh1-OxiRgM,28
|
|
13
13
|
ngpt/cli/modes/chat.py,sha256=4a5EgM_5A1zCSrLrjgQMDnBwIHd1Rnu5_BjSKSm7p24,4255
|
14
14
|
ngpt/cli/modes/code.py,sha256=RjOAj7BDO5vLUdIPkUfPtyIkI_W6qEHsZvYh-sIdVaM,4293
|
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=Z-jSGodMoOJps0jL3sLaJaFXCxk4XKYQkrVb7wwxm20,8749
|
17
17
|
ngpt/cli/modes/shell.py,sha256=lF9f7w-0bl_FdZl-WJnZuV736BKrWQtrwoKr3ejPXFE,2682
|
18
18
|
ngpt/cli/modes/text.py,sha256=ncYnfLFMdTPuHiOvAaHNiOWhox6GF6S-2fTwMIrAz-g,3140
|
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.2.dist-info/METADATA,sha256=L4dWfiuOySmzoJcmePrb7CGLU1f73SGNg0y3dzSBZo4,24767
|
24
|
+
ngpt-2.16.2.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
25
|
+
ngpt-2.16.2.dist-info/entry_points.txt,sha256=SqAAvLhMrsEpkIr4YFRdUeyuXQ9o0IBCeYgE6AVojoI,44
|
26
|
+
ngpt-2.16.2.dist-info/licenses/LICENSE,sha256=mQkpWoADxbHqE0HRefYLJdm7OpdrXBr3vNv5bZ8w72M,1065
|
27
|
+
ngpt-2.16.2.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|