GenerationConfig


public final class GenerationConfig


कॉन्टेंट जनरेट करने के लिए इस्तेमाल किए जाने वाले कॉन्फ़िगरेशन पैरामीटर.

खास जानकारी

नेस्ट किए गए टाइप

public final class GenerationConfig.Builder
public static class GenerationConfig.Companion

पब्लिक मेथड

final @NonNull Executor

वह Executor जिस पर कॉलबैक शुरू किए जाने चाहिए

final Integer

जवाबों की ज़्यादा से ज़्यादा यूनीक संख्या

final Context

इस्तेमाल करने के लिए ऐप्लिकेशन कॉन्टेक्स्ट

final Integer

हर जवाब के लिए जनरेट किए जाने वाले ज़्यादा से ज़्यादा टोकन

final Float

टोकन चुनने में रैंडमनेस का लेवल. आम तौर पर, यह 0 से 1 के बीच होता है

final Integer

सबसे ज़्यादा संभावना वाले कितने टोकन चुनने हैं

final @NonNull ExecutorService

वह ExecutorService जिस पर बैकग्राउंड टास्क चलाने हैं

पब्लिक मेथड

getCallbackExecutor

public final @NonNull Executor getCallbackExecutor()

वह Executor जिस पर कॉलबैक शुरू किए जाने चाहिए

getCandidateCount

public final Integer getCandidateCount()

जवाबों की ज़्यादा से ज़्यादा यूनीक संख्या

getContext

public final Context getContext()

इस्तेमाल करने के लिए ऐप्लिकेशन कॉन्टेक्स्ट

getMaxOutputTokens

public final Integer getMaxOutputTokens()

हर जवाब के लिए जनरेट किए जाने वाले ज़्यादा से ज़्यादा टोकन

getTemperature

public final Float getTemperature()

टोकन चुनने में रैंडमनेस का लेवल. आम तौर पर, यह 0 से 1 के बीच होता है

getTopK

public final Integer getTopK()

सबसे ज़्यादा संभावना वाले कितने टोकन चुनने हैं

getWorkerExecutor

public final @NonNull ExecutorService getWorkerExecutor()

वह ExecutorService जिस पर बैकग्राउंड टास्क चलाने हैं