Class PdfChatGptRequestOptions

信息

表示 Documentize.PdfChatGpt 插件的选项。

public class PdfChatGptRequestOptions : PdfChatGptOptions, IPluginOptions  

Inheritance

object
PdfChatGptOptions
PdfChatGptRequestOptions

Implements

Inherited Members

Constructors

PdfChatGptRequestOptions()

初始化 Documentize.PdfChatGptRequestOptions 对象的新实例,使用默认选项。

public PdfChatGptRequestOptions()  

PdfChatGptRequestOptions(string, string, string, string)

使用选项初始化 Documentize.PdfChatGptRequestOptions 对象的新实例。

public PdfChatGptRequestOptions(string apiKey, string model, string apiUrl, string query)  

Parameters

Properties

ApiKey

获取或设置访问 ChatGPT API 的密钥。

public string ApiKey { get; set; }  

Property Value

string

ApiUrl

获取或设置 ChatGPT API 的 URL。

public string ApiUrl { get; set; }  

Property Value

string

MaxTokens

响应中最大令牌数。
默认值为 null,表示无限。

public int? MaxTokens { get; set; }  

Property Value

int?

Messages

获取或设置 Documentize.Message 对象的集合。

public List<message> Messages { get; set; }  

Property Value

List<Message>

Model

获取或设置要使用的模型的 ID。

public string Model { get; set; }  

Property Value

string

NumberOfChoices

为每个输入消息生成多少个聊天完成选项。

public int NumberOfChoices { get; set; }  

Property Value

int

Query

获取或设置发送给 ChatGPT 的请求字符串。
如果不为空,这是集合中的第一条消息,将在请求中发送。

public string Query { get; set; }  

Property Value

string

Temperature

使用的采样温度,范围在 0 到 2 之间。
较高的值如 0.8 会使输出更加随机,而较低的值如 0.2 会使其更集中和确定。
默认值为 1。

public double Temperature { get; set; }  

Property Value

double

Namespace: Documentize
Assembly: Documentize.dll

 中文