ngpt 2.16.0__tar.gz → 2.16.1__tar.gz
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-2.16.0 → ngpt-2.16.1}/PKG-INFO +34 -2
- {ngpt-2.16.0 → ngpt-2.16.1}/README.md +33 -1
- {ngpt-2.16.0 → ngpt-2.16.1}/docs/README.md +1 -1
- {ngpt-2.16.0 → ngpt-2.16.1}/docs/configuration.md +30 -1
- {ngpt-2.16.0 → ngpt-2.16.1}/docs/overview.md +1 -1
- {ngpt-2.16.0 → ngpt-2.16.1}/pyproject.toml +1 -1
- {ngpt-2.16.0 → ngpt-2.16.1}/uv.lock +1 -1
- {ngpt-2.16.0 → ngpt-2.16.1}/.github/workflows/python-publish.yml +0 -0
- {ngpt-2.16.0 → ngpt-2.16.1}/.gitignore +0 -0
- {ngpt-2.16.0 → ngpt-2.16.1}/.python-version +0 -0
- {ngpt-2.16.0 → ngpt-2.16.1}/COMMIT_GUIDELINES.md +0 -0
- {ngpt-2.16.0 → ngpt-2.16.1}/CONTRIBUTING.md +0 -0
- {ngpt-2.16.0 → ngpt-2.16.1}/LICENSE +0 -0
- {ngpt-2.16.0 → ngpt-2.16.1}/docs/CONTRIBUTING.md +0 -0
- {ngpt-2.16.0 → ngpt-2.16.1}/docs/LICENSE.md +0 -0
- {ngpt-2.16.0 → ngpt-2.16.1}/docs/_config.yml +0 -0
- {ngpt-2.16.0 → ngpt-2.16.1}/docs/api/README.md +0 -0
- {ngpt-2.16.0 → ngpt-2.16.1}/docs/api/cli.md +0 -0
- {ngpt-2.16.0 → ngpt-2.16.1}/docs/api/cli_config.md +0 -0
- {ngpt-2.16.0 → ngpt-2.16.1}/docs/api/client.md +0 -0
- {ngpt-2.16.0 → ngpt-2.16.1}/docs/api/config.md +0 -0
- {ngpt-2.16.0 → ngpt-2.16.1}/docs/api/logging.md +0 -0
- {ngpt-2.16.0 → ngpt-2.16.1}/docs/assets/css/style.scss +0 -0
- {ngpt-2.16.0 → ngpt-2.16.1}/docs/examples/README.md +0 -0
- {ngpt-2.16.0 → ngpt-2.16.1}/docs/examples/advanced.md +0 -0
- {ngpt-2.16.0 → ngpt-2.16.1}/docs/examples/basic.md +0 -0
- {ngpt-2.16.0 → ngpt-2.16.1}/docs/examples/cli_components.md +0 -0
- {ngpt-2.16.0 → ngpt-2.16.1}/docs/examples/integrations.md +0 -0
- {ngpt-2.16.0 → ngpt-2.16.1}/docs/installation.md +0 -0
- {ngpt-2.16.0 → ngpt-2.16.1}/docs/usage/README.md +0 -0
- {ngpt-2.16.0 → ngpt-2.16.1}/docs/usage/cli_config.md +0 -0
- {ngpt-2.16.0 → ngpt-2.16.1}/docs/usage/cli_framework.md +0 -0
- {ngpt-2.16.0 → ngpt-2.16.1}/docs/usage/cli_usage.md +0 -0
- {ngpt-2.16.0 → ngpt-2.16.1}/docs/usage/gitcommsg.md +0 -0
- {ngpt-2.16.0 → ngpt-2.16.1}/docs/usage/library_usage.md +0 -0
- {ngpt-2.16.0 → ngpt-2.16.1}/ngpt/__init__.py +0 -0
- {ngpt-2.16.0 → ngpt-2.16.1}/ngpt/__main__.py +0 -0
- {ngpt-2.16.0 → ngpt-2.16.1}/ngpt/cli/__init__.py +0 -0
- {ngpt-2.16.0 → ngpt-2.16.1}/ngpt/cli/args.py +0 -0
- {ngpt-2.16.0 → ngpt-2.16.1}/ngpt/cli/config_manager.py +0 -0
- {ngpt-2.16.0 → ngpt-2.16.1}/ngpt/cli/formatters.py +0 -0
- {ngpt-2.16.0 → ngpt-2.16.1}/ngpt/cli/interactive.py +0 -0
- {ngpt-2.16.0 → ngpt-2.16.1}/ngpt/cli/main.py +0 -0
- {ngpt-2.16.0 → ngpt-2.16.1}/ngpt/cli/modes/__init__.py +0 -0
- {ngpt-2.16.0 → ngpt-2.16.1}/ngpt/cli/modes/chat.py +0 -0
- {ngpt-2.16.0 → ngpt-2.16.1}/ngpt/cli/modes/code.py +0 -0
- {ngpt-2.16.0 → ngpt-2.16.1}/ngpt/cli/modes/gitcommsg.py +0 -0
- {ngpt-2.16.0 → ngpt-2.16.1}/ngpt/cli/modes/rewrite.py +0 -0
- {ngpt-2.16.0 → ngpt-2.16.1}/ngpt/cli/modes/shell.py +0 -0
- {ngpt-2.16.0 → ngpt-2.16.1}/ngpt/cli/modes/text.py +0 -0
- {ngpt-2.16.0 → ngpt-2.16.1}/ngpt/cli/renderers.py +0 -0
- {ngpt-2.16.0 → ngpt-2.16.1}/ngpt/cli/ui.py +0 -0
- {ngpt-2.16.0 → ngpt-2.16.1}/ngpt/client.py +0 -0
- {ngpt-2.16.0 → ngpt-2.16.1}/ngpt/utils/__init__.py +0 -0
- {ngpt-2.16.0 → ngpt-2.16.1}/ngpt/utils/cli_config.py +0 -0
- {ngpt-2.16.0 → ngpt-2.16.1}/ngpt/utils/config.py +0 -0
- {ngpt-2.16.0 → ngpt-2.16.1}/ngpt/utils/log.py +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: ngpt
|
3
|
-
Version: 2.16.
|
3
|
+
Version: 2.16.1
|
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/apikeys)
|
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:
|
@@ -5,7 +5,7 @@
|
|
5
5
|
[](https://pypi.org/project/ngpt/)
|
6
6
|
[](https://nazdridoy.github.io/ngpt/)
|
7
7
|
|
8
|
-
A
|
8
|
+
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.
|
9
9
|
|
10
10
|

|
11
11
|
|
@@ -26,6 +26,9 @@ A lightweight Python CLI and library for interacting with OpenAI-compatible APIs
|
|
26
26
|
- [Interactive Configuration](#interactive-configuration)
|
27
27
|
- [Configuration File](#configuration-file)
|
28
28
|
- [Configuration Priority](#configuration-priority)
|
29
|
+
- [API Key Setup](#api-key-setup)
|
30
|
+
- [OpenAI API Key](#openai-api-key)
|
31
|
+
- [Google Gemini API Key](#google-gemini-api-key)
|
29
32
|
- [Contributing](#contributing)
|
30
33
|
- [License](#license)
|
31
34
|
|
@@ -361,6 +364,35 @@ For detailed information about building CLI tools with nGPT, see the [CLI Framew
|
|
361
364
|
|
362
365
|
## Configuration
|
363
366
|
|
367
|
+
### API Key Setup
|
368
|
+
|
369
|
+
#### OpenAI API Key
|
370
|
+
1. Create an account at [OpenAI](https://platform.openai.com/)
|
371
|
+
2. Navigate to API keys: https://platform.openai.com/api-keys
|
372
|
+
3. Click "Create new secret key" and copy your API key
|
373
|
+
4. Configure nGPT with your key:
|
374
|
+
```bash
|
375
|
+
ngpt --config
|
376
|
+
# Enter provider: OpenAI
|
377
|
+
# Enter API key: your-openai-api-key
|
378
|
+
# Enter base URL: https://api.openai.com/v1/
|
379
|
+
# Enter model: gpt-3.5-turbo (or other model)
|
380
|
+
```
|
381
|
+
|
382
|
+
#### Google Gemini API Key
|
383
|
+
1. Create or use an existing Google account
|
384
|
+
2. Go to [Google AI Studio](https://aistudio.google.com/)
|
385
|
+
3. Navigate to API keys in the left sidebar (or visit https://aistudio.google.com/app/apikeys)
|
386
|
+
4. Create an API key and copy it
|
387
|
+
5. Configure nGPT with your key:
|
388
|
+
```bash
|
389
|
+
ngpt --config
|
390
|
+
# Enter provider: Gemini
|
391
|
+
# Enter API key: your-gemini-api-key
|
392
|
+
# Enter base URL: https://generativelanguage.googleapis.com/v1beta/openai
|
393
|
+
# Enter model: gemini-2.0-flash
|
394
|
+
```
|
395
|
+
|
364
396
|
### Command Line Options
|
365
397
|
|
366
398
|
You can configure nGPT using the following options:
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# nGPT Documentation
|
2
2
|
|
3
|
-
Welcome to the documentation for nGPT, a
|
3
|
+
Welcome to the documentation for nGPT, a versatile Python LLM client that functions as a CLI utility, library, and development framework. It supports multiple providers (OpenAI, Ollama, Groq, Claude) with features including interactive chat, code generation, shell command execution, git commit messages generation, and markdown rendering. nGPT offers three main modes of use:
|
4
4
|
|
5
5
|
- A command-line interface (CLI) tool for quick AI interactions
|
6
6
|
- A Python library for integration into your applications
|
@@ -2,6 +2,35 @@
|
|
2
2
|
|
3
3
|
nGPT uses a flexible configuration system that supports multiple profiles for different API providers and models. This guide explains how to configure and manage your nGPT settings.
|
4
4
|
|
5
|
+
## API Key Setup
|
6
|
+
|
7
|
+
### OpenAI API Key
|
8
|
+
1. Create an account at [OpenAI](https://platform.openai.com/)
|
9
|
+
2. Navigate to API keys: https://platform.openai.com/api-keys
|
10
|
+
3. Click "Create new secret key" and copy your API key
|
11
|
+
4. Configure nGPT with your key:
|
12
|
+
```bash
|
13
|
+
ngpt --config
|
14
|
+
# Enter provider: OpenAI
|
15
|
+
# Enter API key: your-openai-api-key
|
16
|
+
# Enter base URL: https://api.openai.com/v1/
|
17
|
+
# Enter model: gpt-3.5-turbo (or other model)
|
18
|
+
```
|
19
|
+
|
20
|
+
### Google Gemini API Key
|
21
|
+
1. Create or use an existing Google account
|
22
|
+
2. Go to [Google AI Studio](https://aistudio.google.com/)
|
23
|
+
3. Navigate to API keys in the left sidebar (or visit https://aistudio.google.com/app/apikeys)
|
24
|
+
4. Create an API key and copy it
|
25
|
+
5. Configure nGPT with your key:
|
26
|
+
```bash
|
27
|
+
ngpt --config
|
28
|
+
# Enter provider: Gemini
|
29
|
+
# Enter API key: your-gemini-api-key
|
30
|
+
# Enter base URL: https://generativelanguage.googleapis.com/v1beta/openai
|
31
|
+
# Enter model: gemini-2.0-flash
|
32
|
+
```
|
33
|
+
|
5
34
|
## Configuration File Location
|
6
35
|
|
7
36
|
nGPT stores its configuration in a JSON file located at:
|
@@ -17,7 +46,7 @@ The configuration file uses a JSON list format that allows you to store multiple
|
|
17
46
|
```json
|
18
47
|
[
|
19
48
|
{
|
20
|
-
"api_key": "your-openai-api-key
|
49
|
+
"api_key": "your-openai-api-key",
|
21
50
|
"base_url": "https://api.openai.com/v1/",
|
22
51
|
"provider": "OpenAI",
|
23
52
|
"model": "gpt-4o"
|
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
## What is nGPT?
|
4
4
|
|
5
|
-
nGPT is a
|
5
|
+
nGPT is a versatile Python LLM client that functions as a CLI utility, library, and development framework. It supports multiple providers (OpenAI, Ollama, Groq, Claude) with features including interactive chat, code generation, shell command execution, git commit messages generation, and markdown rendering.
|
6
6
|
|
7
7
|
## Key Features
|
8
8
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
[project]
|
2
2
|
name = "ngpt"
|
3
|
-
version = "2.16.
|
3
|
+
version = "2.16.1"
|
4
4
|
description = "A lightweight Python CLI and library for interacting with OpenAI-compatible APIs, supporting both official and self-hosted LLM endpoints."
|
5
5
|
authors = [
|
6
6
|
{name = "nazDridoy", email = "nazdridoy399@gmail.com"},
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|