@llmops/core 0.2.11-beta.4 → 0.2.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/{bun-sqlite-dialect-BiyQ5XmW.mjs → bun-sqlite-dialect-YVmcpOaa.mjs} +0 -1
- package/dist/{bun-sqlite-dialect-DLqPd3F0.cjs → bun-sqlite-dialect-t1xHHJDz.cjs} +1 -2
- package/dist/db/index.cjs +1 -10
- package/dist/db/index.d.cts +2 -2
- package/dist/db/index.d.mts +2 -2
- package/dist/db/index.mjs +2 -4
- package/dist/{db-CEHt_ysR.mjs → db-BGDhJROC.mjs} +2 -8
- package/dist/{db-BIiDmOuQ.cjs → db-CqDD6Ydv.cjs} +2 -8
- package/dist/{index-C66pTe1n.d.cts → index-BUlmWTh7.d.cts} +37 -41
- package/dist/{index-BX96l072.d.mts → index-CkrtLH8W.d.mts} +2 -6
- package/dist/index.cjs +2 -14
- package/dist/index.d.cts +269 -269
- package/dist/index.d.mts +2 -2
- package/dist/index.mjs +3 -8
- package/dist/{node-sqlite-dialect-HRKgk8Ae.cjs → node-sqlite-dialect-D4V5e49r.cjs} +1 -2
- package/dist/{node-sqlite-dialect-B3Mejscr.mjs → node-sqlite-dialect-rrsskSJp.mjs} +0 -1
- package/package.json +2 -4
- package/dist/neon-dialect-C8y4ymaE.mjs +0 -4
- package/dist/neon-dialect-CTFuNy48.mjs +0 -4
- package/dist/neon-dialect-eEOfdvtN.cjs +0 -11
- package/dist/neon-dialect-js5JsNqM.cjs +0 -2
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { A as SCHEMA_METADATA, B as WorkspaceSettings, C as EnvironmentSecretsTable, D as LLMRequestsTable, E as LLMRequest, F as Updateable, G as environmentsSchema, H as configVariantsSchema, I as Variant, J as schemas, K as llmRequestsSchema, L as VariantVersion, M as TableName, N as TargetingRule, O as ProviderConfig, P as TargetingRulesTable, Q as workspaceSettingsSchema, R as VariantVersionsTable, S as EnvironmentSecret, T as Insertable, U as configsSchema, V as WorkspaceSettingsTable, W as environmentSecretsSchema, X as variantVersionsSchema, Y as targetingRulesSchema, Z as variantsSchema, _ as ConfigVariant, a as createDatabaseFromConnection, b as Database, c as MigrationResult, d as runAutoMigrations, f as parsePartialTableData, g as Config, h as validateTableData, i as createDatabase, j as Selectable, k as ProviderConfigsTable, l as getMigrations, m as validatePartialTableData, n as DatabaseOptions, o as detectDatabaseType, p as parseTableData, q as providerConfigsSchema, r as DatabaseType, s as MigrationOptions, t as DatabaseConnection, u as matchType, v as ConfigVariantsTable, w as EnvironmentsTable, x as Environment, y as ConfigsTable, z as VariantsTable } from "./index-CkrtLH8W.mjs";
|
|
2
2
|
import gateway from "@llmops/gateway";
|
|
3
3
|
import { Kysely } from "kysely";
|
|
4
4
|
import pino from "pino";
|
|
@@ -2798,4 +2798,4 @@ interface AuthClientOptions {
|
|
|
2798
2798
|
*/
|
|
2799
2799
|
declare const getAuthClientOptions: (options: AuthClientOptions) => BetterAuthOptions;
|
|
2800
2800
|
//#endregion
|
|
2801
|
-
export { type AnthropicProviderConfig, type AnyProviderConfig, AuthClientDatabaseConfig, AuthClientOptions, type AzureAIProviderConfig, type AzureOpenAIProviderConfig, BaseCacheConfig, type BaseProviderConfig, type BedrockProviderConfig, CacheBackend, CacheBackendType, CacheConfig, CacheEntry, CacheOptions, CacheService, CacheStats, ChatCompletionCreateParamsBase, Config, ConfigVariant, type ConfigVariantsTable, type ConfigsTable, type CortexProviderConfig, CostResult, type Database, DatabaseConnection, DatabaseOptions, DatabaseType, Environment, EnvironmentSecret, type EnvironmentSecretsTable, type EnvironmentsTable, FileCacheBackend, FileCacheConfig, type FireworksAIProviderConfig, type GoogleProviderConfig, type HuggingFaceProviderConfig, Insertable, LLMOpsClient, LLMOpsConfig, type LLMOpsConfigInput, LLMRequest, type LLMRequestInsert, LLMRequestsTable, MS, MemoryCacheBackend, MemoryCacheConfig, MigrationOptions, MigrationResult, type MistralAIProviderConfig, ModelPricing, ModelsDevPricingProvider,
|
|
2801
|
+
export { type AnthropicProviderConfig, type AnyProviderConfig, AuthClientDatabaseConfig, AuthClientOptions, type AzureAIProviderConfig, type AzureOpenAIProviderConfig, BaseCacheConfig, type BaseProviderConfig, type BedrockProviderConfig, CacheBackend, CacheBackendType, CacheConfig, CacheEntry, CacheOptions, CacheService, CacheStats, ChatCompletionCreateParamsBase, Config, ConfigVariant, type ConfigVariantsTable, type ConfigsTable, type CortexProviderConfig, CostResult, type Database, DatabaseConnection, DatabaseOptions, DatabaseType, Environment, EnvironmentSecret, type EnvironmentSecretsTable, type EnvironmentsTable, FileCacheBackend, FileCacheConfig, type FireworksAIProviderConfig, type GoogleProviderConfig, type HuggingFaceProviderConfig, Insertable, LLMOpsClient, LLMOpsConfig, type LLMOpsConfigInput, LLMRequest, type LLMRequestInsert, LLMRequestsTable, MS, MemoryCacheBackend, MemoryCacheConfig, MigrationOptions, MigrationResult, type MistralAIProviderConfig, ModelPricing, ModelsDevPricingProvider, type OpenAIProviderConfig, type OracleProviderConfig, Prettify, PricingProvider, ProviderConfig, type ProviderConfigMap, ProviderConfigsTable, type ProvidersConfig, SCHEMA_METADATA, type SagemakerProviderConfig, Selectable, type StabilityAIProviderConfig, SupportedProviders, type TableName, TargetingRule, type TargetingRulesTable, Updateable, UsageData, type ValidatedLLMOpsConfig, Variant, VariantJsonData, VariantVersion, VariantVersionsTable, type VariantsTable, type VertexAIProviderConfig, type WorkersAIProviderConfig, WorkspaceSettings, WorkspaceSettingsTable, calculateCost, chatCompletionCreateParamsBaseSchema, configVariantsSchema, configsSchema, createDataLayer, createDatabase, createDatabaseFromConnection, createLLMRequestsDataLayer, createProviderConfigsDataLayer, createWorkspaceSettingsDataLayer, detectDatabaseType, dollarsToMicroDollars, environmentSecretsSchema, environmentsSchema, formatCost, gateway, generateId, getAuthClientOptions, getDefaultPricingProvider, getMigrations, llmRequestsSchema, llmopsConfigSchema, logger, matchType, microDollarsToDollars, parsePartialTableData, parseTableData, providerConfigsSchema, runAutoMigrations, schemas, targetingRulesSchema, validateLLMOpsConfig, validatePartialTableData, validateTableData, variantJsonDataSchema, variantVersionsSchema, variantsSchema, workspaceSettingsSchema };
|
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
import { A as literal, C as variantsSchema, D as any, E as _enum, F as union, I as unknown, M as object, N as record, O as array, P as string, S as variantVersionsSchema, T as zod_default, _ as environmentsSchema, a as matchType, b as schemas, c as logger, d as validatePartialTableData, f as validateTableData, g as environmentSecretsSchema, h as configsSchema, i as getMigrations, j as number, k as boolean, l as parsePartialTableData, m as configVariantsSchema, n as createDatabaseFromConnection, o as runAutoMigrations, p as SCHEMA_METADATA, r as detectDatabaseType, s as getAuthClientOptions, t as createDatabase, u as parseTableData, v as llmRequestsSchema, w as workspaceSettingsSchema, x as targetingRulesSchema, y as providerConfigsSchema } from "./db-CEHt_ysR.mjs";
|
|
3
|
-
import { t as NeonDialect } from "./neon-dialect-C8y4ymaE.mjs";
|
|
1
|
+
import { A as literal, C as variantsSchema, D as any, E as _enum, F as union, I as unknown, M as object, N as record, O as array, P as string, S as variantVersionsSchema, T as zod_default, _ as environmentsSchema, a as matchType, b as schemas, c as logger, d as validatePartialTableData, f as validateTableData, g as environmentSecretsSchema, h as configsSchema, i as getMigrations, j as number, k as boolean, l as parsePartialTableData, m as configVariantsSchema, n as createDatabaseFromConnection, o as runAutoMigrations, p as SCHEMA_METADATA, r as detectDatabaseType, s as getAuthClientOptions, t as createDatabase, u as parseTableData, v as llmRequestsSchema, w as workspaceSettingsSchema, x as targetingRulesSchema, y as providerConfigsSchema } from "./db-BGDhJROC.mjs";
|
|
4
2
|
import gateway from "@llmops/gateway";
|
|
5
3
|
import { sql } from "kysely";
|
|
6
4
|
import * as fs from "node:fs/promises";
|
|
@@ -838,10 +836,7 @@ var CacheService = class {
|
|
|
838
836
|
}
|
|
839
837
|
createBackend(config) {
|
|
840
838
|
switch (config.backend) {
|
|
841
|
-
case "memory": return new MemoryCacheBackend(
|
|
842
|
-
maxSize: config.maxSize,
|
|
843
|
-
cleanupIntervalMs: config.cleanupInterval
|
|
844
|
-
});
|
|
839
|
+
case "memory": return new MemoryCacheBackend(config.maxSize, config.cleanupInterval);
|
|
845
840
|
case "file": return new FileCacheBackend(config.dataDir, config.fileName, config.saveInterval, config.cleanupInterval);
|
|
846
841
|
default: throw new Error(`Unsupported cache backend: ${config.backend}`);
|
|
847
842
|
}
|
|
@@ -2582,4 +2577,4 @@ function getDefaultPricingProvider() {
|
|
|
2582
2577
|
}
|
|
2583
2578
|
|
|
2584
2579
|
//#endregion
|
|
2585
|
-
export { CacheService, FileCacheBackend, MS, MemoryCacheBackend, ModelsDevPricingProvider,
|
|
2580
|
+
export { CacheService, FileCacheBackend, MS, MemoryCacheBackend, ModelsDevPricingProvider, SCHEMA_METADATA, SupportedProviders, calculateCost, chatCompletionCreateParamsBaseSchema, configVariantsSchema, configsSchema, createDataLayer, createDatabase, createDatabaseFromConnection, createLLMRequestsDataLayer, createProviderConfigsDataLayer, createWorkspaceSettingsDataLayer, detectDatabaseType, dollarsToMicroDollars, environmentSecretsSchema, environmentsSchema, formatCost, gateway, generateId, getAuthClientOptions, getDefaultPricingProvider, getMigrations, llmRequestsSchema, llmopsConfigSchema, logger, matchType, microDollarsToDollars, parsePartialTableData, parseTableData, providerConfigsSchema, runAutoMigrations, schemas, targetingRulesSchema, validateLLMOpsConfig, validatePartialTableData, validateTableData, variantJsonDataSchema, variantVersionsSchema, variantsSchema, workspaceSettingsSchema };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@llmops/core",
|
|
3
|
-
"version": "0.2.11
|
|
3
|
+
"version": "0.2.11",
|
|
4
4
|
"description": "Core LLMOps functionality and utilities",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -48,13 +48,11 @@
|
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
50
|
"@better-auth/utils": "^0.3.0",
|
|
51
|
-
"@neondatabase/serverless": "^0.10.3",
|
|
52
51
|
"better-auth": "^1.4.10",
|
|
53
52
|
"hono": "^4.10.7",
|
|
54
53
|
"kysely": "^0.28.8",
|
|
55
|
-
"kysely-neon": "^1.0.1",
|
|
56
54
|
"pino": "^10.1.0",
|
|
57
|
-
"@llmops/gateway": "^0.2.11
|
|
55
|
+
"@llmops/gateway": "^0.2.11"
|
|
58
56
|
},
|
|
59
57
|
"scripts": {
|
|
60
58
|
"build": "tsdown",
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use node";
|
|
2
|
-
const require_db = require('./db-BIiDmOuQ.cjs');
|
|
3
|
-
require('./neon-dialect-js5JsNqM.cjs');
|
|
4
|
-
let kysely_neon = require("kysely-neon");
|
|
5
|
-
|
|
6
|
-
Object.defineProperty(exports, 'NeonDialect', {
|
|
7
|
-
enumerable: true,
|
|
8
|
-
get: function () {
|
|
9
|
-
return kysely_neon.NeonDialect;
|
|
10
|
-
}
|
|
11
|
-
});
|