İçerikle ilgili istekler için yapılandırma seçenekleri
İmza:
export interface GenerationConfig
Özellikler
Özellik | Tür | Açıklama |
---|---|---|
candidateCount | sayı | |
sıklıkPenalty | sayı | |
maxExitTokens | sayı | |
cezası | sayı | |
responseMimeType | dize | Oluşturulan aday metnin çıkış yanıtı mime türü. Desteklenen mime türleri: text/plain (varsayılan, metin çıkışı) ve application/json (adaylardaki JSON yanıtı). Modelin uygun yanıt türünü çıktısı alması istenir. Aksi takdirde davranış tanımsız olur. Bu bir önizleme özelliğidir. |
stopSequences | dize[] | |
sıcaklık | sayı | |
ilkK | sayı | |
topP | sayı |
GenerationConfig.candidateCount
İmza:
candidateCount?: number;
GenerationConfig.frequencyPenalty
İmza:
frequencyPenalty?: number;
GenerationConfig.maxExitTokens
İmza:
maxOutputTokens?: number;
GenerationConfig.presencePenalty
İmza:
presencePenalty?: number;
GenerationConfig.responseMimeType
Oluşturulan aday metnin çıkış yanıtı mime türü. Desteklenen mime türleri: text/plain
(varsayılan, metin çıkışı) ve application/json
(adaylardaki JSON yanıtı). Modelin uygun yanıt türünü çıktısı alması istenir. Aksi takdirde davranış tanımsız olur. Bu bir önizleme özelliğidir.
İmza:
responseMimeType?: string;
GenerationConfig.stopSequences
İmza:
stopSequences?: string[];
GenerationConfig.temperature
İmza:
temperature?: number;
GenerationConfig.topK
İmza:
topK?: number;
GenerationConfig.topP
İmza:
topP?: number;