otterly 0.3.0 → 0.3.2
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/dist/cli.js +7 -0
- package/dist/server/index.js +14 -0
- package/dist/server/playground.d.ts +1 -0
- package/dist/server/playground.js +1626 -0
- package/dist/server/routes-native.js +1 -1
- package/dist/server/swagger.d.ts +51 -0
- package/dist/server/swagger.js +38 -2
- package/package.json +1 -1
|
@@ -5,7 +5,7 @@ import { AgentError } from "../errors.js";
|
|
|
5
5
|
import { apiSessions } from "./session-store.js";
|
|
6
6
|
import { errorToHttpStatus } from "./openai-compat.js";
|
|
7
7
|
import { logError } from "./logger.js";
|
|
8
|
-
const PKG_VERSION = "0.3.
|
|
8
|
+
const PKG_VERSION = "0.3.2";
|
|
9
9
|
/**
|
|
10
10
|
* GET /api/status — health check with queue and circuit breaker stats
|
|
11
11
|
*/
|
package/dist/server/swagger.d.ts
CHANGED
|
@@ -77,6 +77,57 @@ export declare const openApiSpec: {
|
|
|
77
77
|
};
|
|
78
78
|
};
|
|
79
79
|
};
|
|
80
|
+
"/": {
|
|
81
|
+
get: {
|
|
82
|
+
summary: string;
|
|
83
|
+
operationId: string;
|
|
84
|
+
responses: {
|
|
85
|
+
"200": {
|
|
86
|
+
description: string;
|
|
87
|
+
content: {
|
|
88
|
+
"application/json": {
|
|
89
|
+
schema: {
|
|
90
|
+
type: string;
|
|
91
|
+
properties: {
|
|
92
|
+
name: {
|
|
93
|
+
type: string;
|
|
94
|
+
example: string;
|
|
95
|
+
};
|
|
96
|
+
version: {
|
|
97
|
+
type: string;
|
|
98
|
+
example: string;
|
|
99
|
+
};
|
|
100
|
+
playground: {
|
|
101
|
+
type: string;
|
|
102
|
+
example: string;
|
|
103
|
+
};
|
|
104
|
+
};
|
|
105
|
+
required: string[];
|
|
106
|
+
};
|
|
107
|
+
};
|
|
108
|
+
};
|
|
109
|
+
};
|
|
110
|
+
};
|
|
111
|
+
};
|
|
112
|
+
};
|
|
113
|
+
"/playground": {
|
|
114
|
+
get: {
|
|
115
|
+
summary: string;
|
|
116
|
+
operationId: string;
|
|
117
|
+
responses: {
|
|
118
|
+
"200": {
|
|
119
|
+
description: string;
|
|
120
|
+
content: {
|
|
121
|
+
"text/html": {
|
|
122
|
+
schema: {
|
|
123
|
+
type: string;
|
|
124
|
+
};
|
|
125
|
+
};
|
|
126
|
+
};
|
|
127
|
+
};
|
|
128
|
+
};
|
|
129
|
+
};
|
|
130
|
+
};
|
|
80
131
|
"/v1/chat/completions": {
|
|
81
132
|
post: {
|
|
82
133
|
summary: string;
|
package/dist/server/swagger.js
CHANGED
|
@@ -3,7 +3,7 @@ export const openApiSpec = {
|
|
|
3
3
|
openapi: "3.0.3",
|
|
4
4
|
info: {
|
|
5
5
|
title: "Otterly API",
|
|
6
|
-
version: "0.3.
|
|
6
|
+
version: "0.3.2",
|
|
7
7
|
description: "Local inference server with OpenAI-compatible and native endpoints. " +
|
|
8
8
|
"WebSocket available at ws://localhost:{port}/ws for interactive sessions.",
|
|
9
9
|
},
|
|
@@ -21,7 +21,7 @@ export const openApiSpec = {
|
|
|
21
21
|
type: "object",
|
|
22
22
|
properties: {
|
|
23
23
|
status: { type: "string", example: "ok" },
|
|
24
|
-
version: { type: "string", example: "0.3.
|
|
24
|
+
version: { type: "string", example: "0.3.2" },
|
|
25
25
|
activeSessions: { type: "integer" },
|
|
26
26
|
queue: {
|
|
27
27
|
type: "object",
|
|
@@ -54,6 +54,42 @@ export const openApiSpec = {
|
|
|
54
54
|
},
|
|
55
55
|
},
|
|
56
56
|
},
|
|
57
|
+
"/": {
|
|
58
|
+
get: {
|
|
59
|
+
summary: "Server info",
|
|
60
|
+
operationId: "getRoot",
|
|
61
|
+
responses: {
|
|
62
|
+
"200": {
|
|
63
|
+
description: "Server name, version, and playground link",
|
|
64
|
+
content: {
|
|
65
|
+
"application/json": {
|
|
66
|
+
schema: {
|
|
67
|
+
type: "object",
|
|
68
|
+
properties: {
|
|
69
|
+
name: { type: "string", example: "otterly" },
|
|
70
|
+
version: { type: "string", example: "0.3.2" },
|
|
71
|
+
playground: { type: "string", example: "/playground" },
|
|
72
|
+
},
|
|
73
|
+
required: ["name", "version", "playground"],
|
|
74
|
+
},
|
|
75
|
+
},
|
|
76
|
+
},
|
|
77
|
+
},
|
|
78
|
+
},
|
|
79
|
+
},
|
|
80
|
+
},
|
|
81
|
+
"/playground": {
|
|
82
|
+
get: {
|
|
83
|
+
summary: "Interactive API playground",
|
|
84
|
+
operationId: "getPlayground",
|
|
85
|
+
responses: {
|
|
86
|
+
"200": {
|
|
87
|
+
description: "HTML page with interactive API explorer",
|
|
88
|
+
content: { "text/html": { schema: { type: "string" } } },
|
|
89
|
+
},
|
|
90
|
+
},
|
|
91
|
+
},
|
|
92
|
+
},
|
|
57
93
|
"/v1/chat/completions": {
|
|
58
94
|
post: {
|
|
59
95
|
summary: "OpenAI-compatible chat completions",
|