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