@llmops/core 0.3.0 → 0.3.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/dist/index.cjs +12 -0
- package/dist/index.d.cts +211 -203
- package/dist/index.d.mts +211 -203
- package/dist/index.mjs +12 -0
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -354,6 +354,17 @@ const chatCompletionCreateParamsBaseSchema = object({
|
|
|
354
354
|
web_search_options: webSearchOptionsSchema.optional()
|
|
355
355
|
});
|
|
356
356
|
/**
|
|
357
|
+
* Schema for variant message - simplified message format for variant config
|
|
358
|
+
*/
|
|
359
|
+
const variantMessageSchema = object({
|
|
360
|
+
role: _enum([
|
|
361
|
+
"system",
|
|
362
|
+
"user",
|
|
363
|
+
"assistant"
|
|
364
|
+
]),
|
|
365
|
+
content: string()
|
|
366
|
+
});
|
|
367
|
+
/**
|
|
357
368
|
* Schema for variant jsonData - these are the parameters that can be
|
|
358
369
|
* configured per variant to override the default chat completion settings.
|
|
359
370
|
* This is a subset of ChatCompletionCreateParamsBase that makes sense to
|
|
@@ -361,6 +372,7 @@ const chatCompletionCreateParamsBaseSchema = object({
|
|
|
361
372
|
*/
|
|
362
373
|
const variantJsonDataSchema = object({
|
|
363
374
|
system_prompt: string().optional(),
|
|
375
|
+
messages: array(variantMessageSchema).optional(),
|
|
364
376
|
model: string().optional(),
|
|
365
377
|
audio: chatCompletionAudioParamSchema.optional().nullable(),
|
|
366
378
|
frequency_penalty: number().min(-2).max(2).optional().nullable(),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@llmops/core",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.1",
|
|
4
4
|
"description": "Core LLMOps functionality and utilities",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"kysely": "^0.28.8",
|
|
56
56
|
"kysely-neon": "^2.0.2",
|
|
57
57
|
"pino": "^10.1.0",
|
|
58
|
-
"@llmops/gateway": "^0.3.
|
|
58
|
+
"@llmops/gateway": "^0.3.1"
|
|
59
59
|
},
|
|
60
60
|
"devDependencies": {
|
|
61
61
|
"@types/json-logic-js": "^2.0.8",
|