feat(openai): 移除第三方接入方式的相关接口模型,并重命名原平台接入方式的相关接口模型

This commit is contained in:
Fu Diwei
2022-11-21 11:30:38 +08:00
parent 922e70f8db
commit 16aaeb3c31
358 changed files with 373 additions and 8040 deletions

View File

@@ -0,0 +1,35 @@
namespace SKIT.FlurlHttpClient.Wechat.OpenAI
{
/// <summary>
/// 一个用于构造 <see cref="WechatOpenAIClient"/> 时使用的配置项。
/// </summary>
public class WechatOpenAIClientOptions
{
/// <summary>
/// 获取或设置请求超时时间(单位:毫秒)。
/// <para>默认值30000</para>
/// </summary>
public int Timeout { get; set; } = 30 * 1000;
/// <summary>
/// 获取或设置微信智能对话 API 域名。
/// <para>默认值:<see cref="WechatOpenAIEndpoints.DEFAULT"/></para>
/// </summary>
public string Endpoints { get; set; } = WechatOpenAIEndpoints.DEFAULT;
/// <summary>
/// 获取或设置微信智能对话 AppId。
/// </summary>
public string AppId { get; set; } = string.Empty;
/// <summary>
/// 获取或设置微信智能对话 Token。
/// </summary>
public string Token { get; set; } = string.Empty;
/// <summary>
/// 获取或设置微信智能对话 EncodingAESKey。
/// </summary>
public string EncodingAESKey { get; set; } = string.Empty;
}
}