feat: maxToken setting

This commit is contained in:
archer
2023-06-18 21:23:36 +08:00
parent ee9afa310a
commit ff2043c0fb
7 changed files with 54 additions and 6 deletions

View File

@@ -12,6 +12,7 @@ import { textAdaptGptResponse } from '@/utils/adapt';
export type ChatCompletionType = {
apiKey: string;
temperature: number;
maxToken?: number;
messages: ChatItemType[];
chatId?: string;
[key: string]: any;