mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-05-23 22:20:23 +09:00
优化代码
This commit is contained in:
parent
603415f9e1
commit
26b9fa97cd
@ -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[];
|
||||||
|
Loading…
Reference in New Issue
Block a user