Class PdfChatGptRequestOptions
Namespace: Aspose.Pdf.Plugins
Assembly: Aspose.PDF.dll
Aspose.Pdf.Plugins.PdfChatGpt eklentisi için seçenekleri temsil eder.
public class PdfChatGptRequestOptions : PdfChatGptOptions, IPluginOptions
Miras
object ← PdfChatGptOptions ← PdfChatGptRequestOptions
Uygulamalar
Miras Alınan Üyeler
PdfChatGptOptions.AddInput(IDataSource), PdfChatGptOptions.AddOutput(IDataSource), PdfChatGptOptions.Inputs, PdfChatGptOptions.Outputs, object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Yapıcılar
PdfChatGptRequestOptions()
Varsayılan seçeneklerle Aspose.Pdf.Plugins.PdfChatGptRequestOptions nesnesinin yeni bir örneğini başlatır.
public PdfChatGptRequestOptions()
PdfChatGptRequestOptions(string, string, string, string)
Seçeneklerle Aspose.Pdf.Plugins.PdfChatGptRequestOptions nesnesinin yeni bir örneğini başlatır.
public PdfChatGptRequestOptions(string apiKey, string model, string apiUrl, string query)
Parametreler
apiKey
string
ChatGPT API’sine erişim anahtarı.
model
string
ChatGPT modelinin adı. Varsayılan model: gpt-3.5-turbo-1106
apiUrl
string
ChatGPT API URL’si. Varsayılan URL: https://api.openai.com/v1/chat/completions.
query
string
ChatGPT’ye yapılacak istek dizesi.
Özellikler
ApiKey
ChatGPT API’sine erişim anahtarını alır veya ayarlar.
public string ApiKey { get; set; }
Özellik Değeri
ApiUrl
ChatGPT API URL’sini alır veya ayarlar.
public string ApiUrl { get; set; }
Özellik Değeri
MaxTokens
Cevaptaki maksimum token sayısı. Varsayılan değer null, yani sonsuzdur.
public int? MaxTokens { get; set; }
Özellik Değeri
int?
Messages
Aspose.Pdf.Plugins.Message nesnelerinin bir koleksiyonunu alır veya ayarlar.
public List<message> Messages { get; set; }
Özellik Değeri
Model
Kullanılacak modelin ID’sini alır veya ayarlar.
public string Model { get; set; }
Özellik Değeri
NumberOfChoices
Her giriş mesajı için oluşturulacak sohbet tamamlama seçimlerinin sayısı.
public int NumberOfChoices { get; set; }
Özellik Değeri
Query
ChatGPT’ye yapılacak istek dizesini alır veya ayarlar. Boş değilse, bu, istekte gönderilecek koleksiyondaki ilk mesajdır.
public string Query { get; set; }
Özellik Değeri
Temperature
Kullanılacak örnekleme sıcaklığını belirler, 0 ile 2 arasında. 0.8 gibi yüksek değerler çıktıyı daha rastgele hale getirirken, 0.2 gibi düşük değerler daha odaklı ve belirleyici hale getirir. Varsayılan değer 1’dir.
public double Temperature { get; set; }