fix: refine bedrock discovery defaults (#1543) (thanks @fal3)
This commit is contained in:
@@ -48,6 +48,8 @@ export type BedrockDiscoveryConfig = {
|
||||
region?: string;
|
||||
providerFilter?: string[];
|
||||
refreshInterval?: number;
|
||||
defaultContextWindow?: number;
|
||||
defaultMaxTokens?: number;
|
||||
};
|
||||
|
||||
export type ModelsConfig = {
|
||||
|
||||
@@ -65,6 +65,8 @@ export const BedrockDiscoverySchema = z
|
||||
region: z.string().optional(),
|
||||
providerFilter: z.array(z.string()).optional(),
|
||||
refreshInterval: z.number().int().nonnegative().optional(),
|
||||
defaultContextWindow: z.number().int().positive().optional(),
|
||||
defaultMaxTokens: z.number().int().positive().optional(),
|
||||
})
|
||||
.strict()
|
||||
.optional();
|
||||
|
||||
Reference in New Issue
Block a user