优化代码

This commit is contained in:
glay 2024-12-08 08:47:46 +08:00
parent 603415f9e1
commit 26b9fa97cd

View File

@ -11,19 +11,6 @@ export interface BedrockCredentials {
secretAccessKey: string; secretAccessKey: string;
} }
export interface BedrockRequestConfig {
modelId: string;
shouldStream: boolean;
body: any;
credentials: BedrockCredentials;
}
export interface ModelValidationConfig {
requiredFields: string[];
optionalFields?: string[];
customValidation?: (body: any) => string | null;
}
// Type definitions for better type safety // Type definitions for better type safety
type ParsedEvent = Record<string, any>; type ParsedEvent = Record<string, any>;
type EventResult = ParsedEvent[]; type EventResult = ParsedEvent[];