create-zuplo-api 6.74.8 → 6.74.12
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.
|
@@ -9,8 +9,8 @@ the application's configuration from the `app_id` path segment and runs its
|
|
|
9
9
|
`inboundPolicyChain`. Applications may select only from the policies
|
|
10
10
|
pre-declared in `config/policies.json`. To require application API keys for a
|
|
11
11
|
specific app, add `ai-gateway-auth-v2-inbound` to that application's
|
|
12
|
-
`inboundPolicyChain`. Adding it on the route before the executor requires a
|
|
13
|
-
|
|
12
|
+
`inboundPolicyChain`. Adding it on the route before the executor requires a key
|
|
13
|
+
for every application on the route.
|
|
14
14
|
|
|
15
15
|
## Customizing the gateway
|
|
16
16
|
|
|
@@ -22,7 +22,6 @@ key for every application on the route.
|
|
|
22
22
|
|
|
23
23
|
## Environment variables
|
|
24
24
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
application's policy chain.
|
|
25
|
+
Configure credentials for the pre-declared firewall and tracing policies in
|
|
26
|
+
their options in `config/policies.json`. Reference environment variables with
|
|
27
|
+
`$env(VAR)` and set them in your project's Environment Variables settings.
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
},
|
|
13
13
|
"get,post,delete": {
|
|
14
14
|
"summary": "AI Gateway catch-all",
|
|
15
|
-
"description": "Routes AI requests under /{app_id}/v1/* to the AI Gateway handler. The
|
|
15
|
+
"description": "Routes AI requests under /{app_id}/v1/* to the AI Gateway handler. The configuration executor loads the application configuration from the app_id path segment. Supported suffixes: /v1/chat/completions, /v1/embeddings, /v1/messages, /v1/responses and its sub-resources.",
|
|
16
16
|
"operationId": "aiGatewayCatchAll",
|
|
17
17
|
"responses": {
|
|
18
18
|
"200": {
|
|
@@ -22,10 +22,10 @@
|
|
|
22
22
|
"description": "Bad request"
|
|
23
23
|
},
|
|
24
24
|
"401": {
|
|
25
|
-
"description": "Unauthorized"
|
|
25
|
+
"description": "Unauthorized — returned only when the application's inboundPolicyChain includes ai-gateway-auth-v2-inbound, or authentication runs before the configuration executor"
|
|
26
26
|
},
|
|
27
27
|
"403": {
|
|
28
|
-
"description": "Forbidden — API key does not
|
|
28
|
+
"description": "Forbidden — returned by per-app policies, such as an API key issued for a different app_id or a model the app does not allow"
|
|
29
29
|
},
|
|
30
30
|
"404": {
|
|
31
31
|
"description": "Unsupported AI Gateway endpoint"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-zuplo-api",
|
|
3
|
-
"version": "6.74.
|
|
3
|
+
"version": "6.74.12",
|
|
4
4
|
"keywords": [
|
|
5
5
|
"api",
|
|
6
6
|
"openapi",
|
|
@@ -9,14 +9,14 @@
|
|
|
9
9
|
"description": "Create Zuplo API with one command",
|
|
10
10
|
"repository": {
|
|
11
11
|
"type": "git",
|
|
12
|
-
"url": "https://github.com/zuplo/core",
|
|
12
|
+
"url": "git+https://github.com/zuplo/core.git",
|
|
13
13
|
"directory": "packages/create-zuplo-api"
|
|
14
14
|
},
|
|
15
15
|
"author": "Zuplo <support@zuplo.com>",
|
|
16
16
|
"license": "MIT",
|
|
17
17
|
"main": "dist/create.js",
|
|
18
18
|
"bin": {
|
|
19
|
-
"create-zuplo-api": "
|
|
19
|
+
"create-zuplo-api": "dist/index.js"
|
|
20
20
|
},
|
|
21
21
|
"files": [
|
|
22
22
|
"dist/*",
|