feat: 重命名配置项参数 "Endpoints" → "Endpoint"

This commit is contained in:
Fu Diwei
2023-03-12 08:05:24 +08:00
parent c2723bba7a
commit f187a420db
24 changed files with 64 additions and 60 deletions

View File

@@ -27,7 +27,7 @@ namespace SKIT.FlurlHttpClient.Wechat.OpenAI
Credentials = new Settings.Credentials(options);
FlurlClient.BaseUrl = options.Endpoints ?? WechatOpenAIEndpoints.DEFAULT;
FlurlClient.BaseUrl = options.Endpoint ?? WechatOpenAIEndpoints.DEFAULT;
FlurlClient.WithTimeout(TimeSpan.FromMilliseconds(options.Timeout));
}

View File

@@ -1,4 +1,4 @@
namespace SKIT.FlurlHttpClient.Wechat.OpenAI
namespace SKIT.FlurlHttpClient.Wechat.OpenAI
{
/// <summary>
/// 一个用于构造 <see cref="WechatOpenAIClient"/> 时使用的配置项。
@@ -12,10 +12,10 @@
public int Timeout { get; set; } = 30 * 1000;
/// <summary>
/// 获取或设置微信智能对话 API 域名
/// 获取或设置微信智能对话 API 入口点
/// <para>默认值:<see cref="WechatOpenAIEndpoints.DEFAULT"/></para>
/// </summary>
public string Endpoints { get; set; } = WechatOpenAIEndpoints.DEFAULT;
public string Endpoint { get; set; } = WechatOpenAIEndpoints.DEFAULT;
/// <summary>
/// 获取或设置微信智能对话 AppId。