@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.cjs
CHANGED
|
@@ -358,6 +358,17 @@ const chatCompletionCreateParamsBaseSchema = require_db.object({
|
|
|
358
358
|
web_search_options: webSearchOptionsSchema.optional()
|
|
359
359
|
});
|
|
360
360
|
/**
|
|
361
|
+
* Schema for variant message - simplified message format for variant config
|
|
362
|
+
*/
|
|
363
|
+
const variantMessageSchema = require_db.object({
|
|
364
|
+
role: require_db._enum([
|
|
365
|
+
"system",
|
|
366
|
+
"user",
|
|
367
|
+
"assistant"
|
|
368
|
+
]),
|
|
369
|
+
content: require_db.string()
|
|
370
|
+
});
|
|
371
|
+
/**
|
|
361
372
|
* Schema for variant jsonData - these are the parameters that can be
|
|
362
373
|
* configured per variant to override the default chat completion settings.
|
|
363
374
|
* This is a subset of ChatCompletionCreateParamsBase that makes sense to
|
|
@@ -365,6 +376,7 @@ const chatCompletionCreateParamsBaseSchema = require_db.object({
|
|
|
365
376
|
*/
|
|
366
377
|
const variantJsonDataSchema = require_db.object({
|
|
367
378
|
system_prompt: require_db.string().optional(),
|
|
379
|
+
messages: require_db.array(variantMessageSchema).optional(),
|
|
368
380
|
model: require_db.string().optional(),
|
|
369
381
|
audio: chatCompletionAudioParamSchema.optional().nullable(),
|
|
370
382
|
frequency_penalty: require_db.number().min(-2).max(2).optional().nullable(),
|