pi-cliproxyapi 0.3.0 → 0.3.1
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.
- package/README.md +33 -8
- package/package.json +1 -1
- package/src/fetch-models.ts +1 -1
package/README.md
CHANGED
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
```
|
|
2
|
+
██████╗ ██╗ ██████╗██╗ ██╗██████╗ ██████╗ ██████╗ ██╗ ██╗██╗ ██╗
|
|
3
|
+
██╔══██╗██║ ██╔════╝██║ ██║██╔══██╗██╔══██╗██╔═══██╗╚██╗██╔╝╚██╗ ██╔╝
|
|
4
|
+
██████╔╝██║ ██║ ██║ ██║██████╔╝██████╔╝██║ ██║ ╚███╔╝ ╚████╔╝
|
|
5
|
+
██╔═══╝ ██║ ██║ ██║ ██║██╔═══╝ ██╔══██╗██║ ██║ ██╔██╗ ╚██╔╝
|
|
6
|
+
██║ ██║ ╚██████╗███████╗██║██║ ██║ ██║╚██████╔╝██╔╝ ██╗ ██║
|
|
7
|
+
╚═╝ ╚═╝ ╚═════╝╚══════╝╚═╝╚═╝ ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝ ╚═╝
|
|
8
|
+
```
|
|
9
|
+
|
|
1
10
|
# pi-cliproxyapi
|
|
2
11
|
|
|
3
12
|
[](https://www.npmjs.com/package/pi-cliproxyapi)
|
|
@@ -7,6 +16,8 @@ Pi extension for corporate management of model providers via a single [CliProxyA
|
|
|
7
16
|
|
|
8
17
|
One `(endpoint, apiKey)` pair — every provider and model inherits it automatically.
|
|
9
18
|
|
|
19
|
+

|
|
20
|
+
|
|
10
21
|
## Features
|
|
11
22
|
|
|
12
23
|
- **Unified hub** — one `/cliproxy` overlay with **Models / Usage / Diagnostics** tabs (number hotkeys `1` `2` `3`) plus global actions: `r` refresh, `e` setup, `s` save
|
|
@@ -42,6 +53,20 @@ Extra Models keys: `d` removes a custom group (with confirmation).
|
|
|
42
53
|
|
|
43
54
|
**Diagnostics tab** — connectivity, key resolution, and discovery shape.
|
|
44
55
|
|
|
56
|
+
## Screenshots
|
|
57
|
+
|
|
58
|
+
**Models — custom group, pool grouped by owner (`/` filters the pool)**
|
|
59
|
+
|
|
60
|
+

|
|
61
|
+
|
|
62
|
+
**Usage — per-account quota windows**
|
|
63
|
+
|
|
64
|
+

|
|
65
|
+
|
|
66
|
+
**Diagnostics — connectivity, keys, discovery shape**
|
|
67
|
+
|
|
68
|
+

|
|
69
|
+
|
|
45
70
|
## Prerequisites
|
|
46
71
|
|
|
47
72
|
You need a running [CliProxyAPI](https://github.com/router-for-me/CLIProxyAPI) instance — this is the corporate LLM proxy that aggregates multiple providers behind a single OpenAI-compatible endpoint.
|
|
@@ -96,14 +121,14 @@ The **[pi-cliproxyapi-wellknown](https://github.com/abix5/pi-cliproxyapi-wellkno
|
|
|
96
121
|
|
|
97
122
|
```
|
|
98
123
|
┌──────────────┐ ┌───────────────────────────┐
|
|
99
|
-
│ Pi + plugin
|
|
100
|
-
│
|
|
101
|
-
│
|
|
102
|
-
│
|
|
103
|
-
│
|
|
104
|
-
│
|
|
105
|
-
│
|
|
106
|
-
│
|
|
124
|
+
│ Pi + plugin │────▶│ CliProxyAPI (:8317) │
|
|
125
|
+
│ │ │ /v1/models, /v1/chat/... │
|
|
126
|
+
│ │ └───────────────────────────┘
|
|
127
|
+
│ │ ┌───────────────────────────┐
|
|
128
|
+
│ │────▶│ wellknown sidecar (:3458)│
|
|
129
|
+
│ │ │ /.well-known/pi │
|
|
130
|
+
│ │ │ /api/usage │
|
|
131
|
+
│ │ └───────────────────────────┘
|
|
107
132
|
└──────────────┘
|
|
108
133
|
```
|
|
109
134
|
|
package/package.json
CHANGED
package/src/fetch-models.ts
CHANGED
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
import type { ProxyConfig } from "./config.ts";
|
|
21
21
|
import { log } from "./log.ts";
|
|
22
22
|
|
|
23
|
-
export const PLUGIN_USER_AGENT = "pi-cliproxyapi/0.3.
|
|
23
|
+
export const PLUGIN_USER_AGENT = "pi-cliproxyapi/0.3.1";
|
|
24
24
|
const REQUEST_TIMEOUT_MS = 5_000;
|
|
25
25
|
|
|
26
26
|
export interface DiscoveryModelEntry {
|