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

@@ -1,4 +1,4 @@
using SKIT.FlurlHttpClient.Tools.CodeAnalyzer;
using SKIT.FlurlHttpClient.Tools.CodeAnalyzer;
using Xunit;
namespace SKIT.FlurlHttpClient.Wechat.OpenAI.UnitTests
@@ -14,38 +14,7 @@ namespace SKIT.FlurlHttpClient.Wechat.OpenAI.UnitTests
{
AssemblyName = "SKIT.FlurlHttpClient.Wechat.OpenAI",
WorkDirectoryForSourceCode = TestConfigs.WorkDirectoryForSdk,
WorkSubDirectoryForApiModels = "Models/Platform",
WorkSubDirectoryForApiEvents = "Events/Platform",
WorkSubDirectoryForApiMethods = "Extensions/Platform",
WorkDirectoryForTestSample = TestConfigs.WorkDirectoryForTest,
WorkSubDirectoryForApiModelSamples = "ModelSamples/Platform",
WorkSubDirectoryForApiEventSamples = "EventSamples/Platform",
TargetSdkApiModelNamespaceUnderAssemblyIdentifier = "Models.Platform",
TargetSdkApiEventNamespaceUnderAssemblyIdentifier = "Events.Platform",
AllowNotFoundEventTypes = true,
AllowNotFoundEventSamples = true
};
CodeAnalyzer analyzer = new CodeAnalyzer(options);
analyzer.Start();
analyzer.Assert();
analyzer.Flush();
}));
Assert.Null(Record.Exception(() =>
{
CodeAnalyzerOptions options = new CodeAnalyzerOptions()
{
AssemblyName = "SKIT.FlurlHttpClient.Wechat.OpenAI",
WorkDirectoryForSourceCode = TestConfigs.WorkDirectoryForSdk,
WorkSubDirectoryForApiModels = "Models/ThirdParty",
WorkSubDirectoryForApiEvents = "Events/ThirdParty",
WorkSubDirectoryForApiMethods = "Extensions/ThirdParty",
WorkDirectoryForTestSample = TestConfigs.WorkDirectoryForTest,
WorkSubDirectoryForApiModelSamples = "ModelSamples/ThirdParty",
WorkSubDirectoryForApiEventSamples = "EventSamples/ThirdParty",
TargetSdkApiModelNamespaceUnderAssemblyIdentifier = "Models.ThirdParty",
TargetSdkApiEventNamespaceUnderAssemblyIdentifier = "Events.ThirdParty",
AllowNotFoundEventTypes = true,
AllowNotFoundEventSamples = true
};