@victor-software-house/pi-openai-proxy 4.1.0 → 4.2.0

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.
@@ -134,6 +134,7 @@ export default function proxyExtension(pi: ExtensionAPI): void {
134
134
  const SUBCOMMANDS = [
135
135
  "start",
136
136
  "stop",
137
+ "restart",
137
138
  "status",
138
139
  "verify",
139
140
  "config",
@@ -142,7 +143,7 @@ export default function proxyExtension(pi: ExtensionAPI): void {
142
143
  "reset",
143
144
  "help",
144
145
  ];
145
- const USAGE = "/proxy [start|stop|status|verify|config|show|path|reset|help]";
146
+ const USAGE = "/proxy [start|stop|restart|status|verify|config|show|path|reset|help]";
146
147
 
147
148
  pi.registerCommand("proxy", {
148
149
  description: "Manage the OpenAI-compatible proxy",
@@ -161,6 +162,11 @@ export default function proxyExtension(pi: ExtensionAPI): void {
161
162
  case "stop":
162
163
  await stopProxy(ctx);
163
164
  return;
165
+ case "restart":
166
+ await stopProxy(ctx);
167
+ await new Promise((r) => setTimeout(r, 500));
168
+ await startProxy(ctx);
169
+ return;
164
170
  case "status":
165
171
  await showStatus(ctx);
166
172
  return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@victor-software-house/pi-openai-proxy",
3
- "version": "4.1.0",
3
+ "version": "4.2.0",
4
4
  "description": "OpenAI-compatible HTTP proxy for pi's multi-provider model registry",
5
5
  "license": "MIT",
6
6
  "author": "Victor Software House",