mirror of
https://github.com/enricoros/big-AGI.git
synced 2026-05-10 21:50:14 -07:00
LLMs: type check server params against the client params def
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import * as z from 'zod/v4';
|
||||
|
||||
import type { DModelParameterId } from '~/common/stores/llms/llms.parameters'; // imported for making sure we sync
|
||||
import { LLMS_ALL_INTERFACES } from '~/common/stores/llms/llms.types';
|
||||
|
||||
|
||||
@@ -117,7 +118,7 @@ const ModelParameterSpec_schema = z.object({
|
||||
'llmVndXaiSearchMode',
|
||||
'llmVndXaiSearchSources',
|
||||
'llmVndXaiSearchDateFilter',
|
||||
]),
|
||||
] satisfies DModelParameterId[]),
|
||||
required: z.boolean().optional(),
|
||||
hidden: z.boolean().optional(),
|
||||
initialValue: z.number().or(z.string()).or(z.boolean()).nullable().optional(),
|
||||
|
||||
Reference in New Issue
Block a user