@zenera/neo 1.1.9 → 1.1.11
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/embedding.d.ts +20 -1
- package/dist/embedding.js +3 -2
- package/dist/embeddings/fanout.d.ts +51 -0
- package/dist/embeddings/fanout.js +76 -0
- package/dist/embeddings/gemini.d.ts +3 -10
- package/dist/embeddings/gemini.js +46 -30
- package/dist/embeddings/index.d.ts +3 -0
- package/dist/embeddings/index.js +3 -0
- package/dist/embeddings/limiter.d.ts +36 -0
- package/dist/embeddings/limiter.js +182 -0
- package/dist/embeddings/openai.d.ts +3 -2
- package/dist/embeddings/openai.js +54 -13
- package/dist/embeddings/openrouter.d.ts +2 -1
- package/dist/embeddings/openrouter.js +52 -22
- package/dist/embeddings/rate-limit.d.ts +16 -0
- package/dist/embeddings/rate-limit.js +131 -0
- package/dist/failure.d.ts +82 -0
- package/dist/failure.js +323 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/models/anthropic.d.ts +2 -1
- package/dist/models/anthropic.js +11 -4
- package/dist/models/factory.d.ts +15 -0
- package/dist/models/factory.js +114 -13
- package/dist/models/gemini.d.ts +2 -1
- package/dist/models/gemini.js +8 -3
- package/dist/models/openai-chat.d.ts +2 -1
- package/dist/models/openai-chat.js +10 -5
- package/dist/models/openai-responses.d.ts +2 -1
- package/dist/models/openai-responses.js +22 -7
- package/dist/models/openrouter.d.ts +12 -1
- package/dist/models/openrouter.js +41 -7
- package/dist/project/config.d.ts +4 -0
- package/dist/project/config.js +13 -1
- package/package.json +1 -1
package/dist/project/config.d.ts
CHANGED
|
@@ -18,6 +18,7 @@ declare const provider: z.ZodObject<{
|
|
|
18
18
|
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
19
19
|
timeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
20
20
|
maxRetries: z.ZodOptional<z.ZodInt>;
|
|
21
|
+
concurrency: z.ZodOptional<z.ZodInt>;
|
|
21
22
|
apiKey: z.ZodOptional<z.ZodString>;
|
|
22
23
|
apiKeyEnv: z.ZodOptional<z.ZodString>;
|
|
23
24
|
baseURL: z.ZodOptional<z.ZodString>;
|
|
@@ -93,6 +94,7 @@ declare const embeddingSpec: z.ZodObject<{
|
|
|
93
94
|
dimensions: z.ZodOptional<z.ZodInt>;
|
|
94
95
|
title: z.ZodOptional<z.ZodString>;
|
|
95
96
|
maxBatch: z.ZodOptional<z.ZodInt>;
|
|
97
|
+
maxBatchTokens: z.ZodOptional<z.ZodInt>;
|
|
96
98
|
routing: z.ZodOptional<z.ZodObject<{
|
|
97
99
|
order: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
98
100
|
only: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
@@ -161,6 +163,7 @@ export declare const projectSchema: z.ZodObject<{
|
|
|
161
163
|
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
162
164
|
timeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
163
165
|
maxRetries: z.ZodOptional<z.ZodInt>;
|
|
166
|
+
concurrency: z.ZodOptional<z.ZodInt>;
|
|
164
167
|
apiKey: z.ZodOptional<z.ZodString>;
|
|
165
168
|
apiKeyEnv: z.ZodOptional<z.ZodString>;
|
|
166
169
|
baseURL: z.ZodOptional<z.ZodString>;
|
|
@@ -226,6 +229,7 @@ export declare const projectSchema: z.ZodObject<{
|
|
|
226
229
|
dimensions: z.ZodOptional<z.ZodInt>;
|
|
227
230
|
title: z.ZodOptional<z.ZodString>;
|
|
228
231
|
maxBatch: z.ZodOptional<z.ZodInt>;
|
|
232
|
+
maxBatchTokens: z.ZodOptional<z.ZodInt>;
|
|
229
233
|
routing: z.ZodOptional<z.ZodObject<{
|
|
230
234
|
order: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
231
235
|
only: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
package/dist/project/config.js
CHANGED
|
@@ -46,6 +46,13 @@ const provider = z
|
|
|
46
46
|
headers: z.record(z.string().min(1), z.string()).optional(),
|
|
47
47
|
timeoutMs: z.number().positive().optional(),
|
|
48
48
|
maxRetries: z.int().nonnegative().optional(),
|
|
49
|
+
/**
|
|
50
|
+
* Ceiling on embedding requests in flight against this connection. The
|
|
51
|
+
* working number is discovered from the provider's own refusals; this
|
|
52
|
+
* only caps how high that may climb, for a key shared with something
|
|
53
|
+
* else that also needs quota.
|
|
54
|
+
*/
|
|
55
|
+
concurrency: z.int().positive().optional(),
|
|
49
56
|
})
|
|
50
57
|
.strict();
|
|
51
58
|
/**
|
|
@@ -120,8 +127,13 @@ const embeddingSpec = z
|
|
|
120
127
|
dimensions: z.int().positive().optional(),
|
|
121
128
|
/** gemini only: a document title the retrieval task type takes into account */
|
|
122
129
|
title: z.string().min(1).optional(),
|
|
123
|
-
/**
|
|
130
|
+
/**
|
|
131
|
+
* Ceilings on how a batch is split into requests. Both default to what
|
|
132
|
+
* the model is known to accept, so setting them is for a gateway whose
|
|
133
|
+
* caps are not the vendor's.
|
|
134
|
+
*/
|
|
124
135
|
maxBatch: z.int().positive().optional(),
|
|
136
|
+
maxBatchTokens: z.int().positive().optional(),
|
|
125
137
|
/** openrouter only: who serves the request */
|
|
126
138
|
routing: routing.optional(),
|
|
127
139
|
})
|