octaflow 0.24.0 → 0.24.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/LICENSE +1 -1
- package/dist/ai/index.d.ts +1 -1
- package/dist/ai/providers/index.js +1 -0
- package/package.json +1 -1
package/LICENSE
CHANGED
package/dist/ai/index.d.ts
CHANGED
|
@@ -58,7 +58,7 @@ export declare function createInstrumentedEmbeddingModel(model: EmbeddingModelV4
|
|
|
58
58
|
* (1 USD = 1,000,000 microdollars) to avoid float accumulation.
|
|
59
59
|
*
|
|
60
60
|
* The pricing table is injectable: pass your own to `createCostEstimator` for a
|
|
61
|
-
* different provider/model set. A default
|
|
61
|
+
* different provider/model set. A default table for the registry's vendors ships.
|
|
62
62
|
*/
|
|
63
63
|
export interface ModelPricing {
|
|
64
64
|
inputPerMillion: number;
|
|
@@ -125,6 +125,7 @@ function checkEndpoint(config) {
|
|
|
125
125
|
url = void 0;
|
|
126
126
|
}
|
|
127
127
|
if (url === void 0 || url.protocol !== "http:" && url.protocol !== "https:") throw new AiProviderConfigError("ai_base_url_invalid", `baseUrl must be an absolute http(s) URL, got ${JSON.stringify(config.baseUrl)}`);
|
|
128
|
+
if (url.protocol === "http:" && residency.value.region !== "self-hosted") throw new AiProviderConfigError("ai_base_url_invalid", `baseUrl must be https for a vendor endpoint (residency ${residency.value.region}); http is for self-hosted endpoints only, got ${JSON.stringify(config.baseUrl)}`);
|
|
128
129
|
return residency.value;
|
|
129
130
|
}
|
|
130
131
|
function requireModel(modelId, field) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "octaflow",
|
|
3
|
-
"version": "0.24.
|
|
3
|
+
"version": "0.24.1",
|
|
4
4
|
"description": "Durable DAG workflow engine: Zod-typed steps over Postgres + pg-boss, with an optional AI add-on (token/cost/quota). Layered single package.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|