@llmops/core 0.1.9-beta.1 → 0.1.9-beta.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/db/index.d.mts +1 -1
- package/dist/{index-DILebhD2.d.mts → index-BTE44_Jz.d.mts} +31 -31
- package/dist/index.cjs +0 -10
- package/dist/index.d.cts +162 -182
- package/dist/index.d.mts +405 -425
- package/dist/index.mjs +0 -10
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -441,18 +441,8 @@ const providerEntries = Object.values(SupportedProviders).map((provider) => [pro
|
|
|
441
441
|
* All providers are optional, but at least one must be configured
|
|
442
442
|
*/
|
|
443
443
|
const providersSchema = object(Object.fromEntries(providerEntries)).refine((providers) => Object.values(providers).some((v) => v !== void 0 && v !== null), "At least one provider must be configured");
|
|
444
|
-
/**
|
|
445
|
-
* Auth configuration schema
|
|
446
|
-
*
|
|
447
|
-
* Uses a flexible schema with passthrough to allow different auth providers.
|
|
448
|
-
* - Open source: basicAuth() from @llmops/sdk (type: 'basic')
|
|
449
|
-
*
|
|
450
|
-
* The actual auth handling is done by the auth middleware based on the type.
|
|
451
|
-
*/
|
|
452
|
-
const authSchema = object({ type: string().min(1, "Auth type is required") }).passthrough();
|
|
453
444
|
const llmopsConfigSchema = object({
|
|
454
445
|
database: any(),
|
|
455
|
-
auth: authSchema,
|
|
456
446
|
basePath: string().min(1, "Base path is required and cannot be empty").refine((path$1) => path$1.startsWith("/"), "Base path must start with a forward slash"),
|
|
457
447
|
providers: providersSchema,
|
|
458
448
|
schema: string().optional().default("llmops")
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@llmops/core",
|
|
3
|
-
"version": "0.1.9-beta.
|
|
3
|
+
"version": "0.1.9-beta.2",
|
|
4
4
|
"description": "Core LLMOps functionality and utilities",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"hono": "^4.10.7",
|
|
53
53
|
"kysely": "^0.28.8",
|
|
54
54
|
"pino": "^10.1.0",
|
|
55
|
-
"@llmops/gateway": "^0.1.9-beta.
|
|
55
|
+
"@llmops/gateway": "^0.1.9-beta.2"
|
|
56
56
|
},
|
|
57
57
|
"scripts": {
|
|
58
58
|
"build": "tsdown",
|