콘텐츠 관련 요청의 구성 옵션
서명:
export interface GenerationConfig
속성
속성 | 유형 | 설명 |
---|---|---|
candidateCount | 숫자 | |
빈도 제한 | 숫자 | |
maxOutputTokens | 숫자 | |
출석 시 불이익 | 숫자 | |
responseMimeType | 문자열 | 생성된 후보 텍스트의 출력 응답 mimetype입니다. 지원되는 MIME 유형은 text/plain (기본, 텍스트 출력) 및 application/json (후보의 JSON 응답)입니다. 모델에 적절한 응답 유형을 출력하라는 메시지가 표시되어야 합니다. 그렇지 않으면 동작이 정의되지 않습니다. 이 기능은 미리보기 기능입니다. |
stopSequences | 문자열[] | |
온도 | 숫자 | |
상위 K | 숫자 | |
주요 기회 | 숫자 |
GenConfig.candidateCount
서명:
candidateCount?: number;
GenConfig.frequencyPenalty
서명:
frequencyPenalty?: number;
GenConfig.maxOutputTokens
서명:
maxOutputTokens?: number;
GenConfig.presencePenalty
서명:
presencePenalty?: number;
GenerationConfig.responseMimeType
생성된 후보 텍스트의 출력 응답 mimetype입니다. 지원되는 MIME 유형은 text/plain
(기본, 텍스트 출력) 및 application/json
(후보의 JSON 응답)입니다. 모델에 적절한 응답 유형을 출력하라는 메시지가 표시되어야 합니다. 그렇지 않으면 동작이 정의되지 않습니다. 이 기능은 미리보기 기능입니다.
서명:
responseMimeType?: string;
GenConfig.stopSequences
서명:
stopSequences?: string[];
GenConfig.temperature
서명:
temperature?: number;
GenConfig.topK
서명:
topK?: number;
GenConfig.topP
서명:
topP?: number;