Skip to content

Commit 4cda00d

Browse files
committed
更新配置,通过编译;整理注释
1 parent e3f9110 commit 4cda00d

3 files changed

Lines changed: 5 additions & 10 deletions

File tree

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
21
@using Microsoft.AspNetCore.Mvc.Razor
2+
@using Senparc.Ncf.Mvc.UI
33
@using System.Web.Mvc
44
@using Senparc.CO2NET.Extensions
55

6-
@namespace Senparc.Xncf.OpenAI.Areas.MyApps.Pages
6+
@*@(namespace Senparc.Xncf.OpenAI.Areas.Admin.OpenAI)*@
77
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
8+
@addTagHelper AuthoringTagHelpers.TagHelpers.EmailTagHelper, AuthoringTagHelpers

src/back-end/Senparc.Xncf.OpenAI/OHS/Local/AppService/GPT3AppService.cs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,6 @@ public async Task<AppResponseBase<List<ChoiceResponse>>> CreateCompletionAsync(s
8282
/// <param name="model">选用模型,如果留空则默认使用 text-davinci-v3</param>
8383
/// <param name="maxTokens">最大消费 Token 数量。默认为 50</param>
8484
/// <returns></returns>
85-
/// <exception cref="NcfExceptionBase"></exception>
8685
[ApiBind(ApiRequestMethod = CO2NET.WebApi.ApiRequestMethod.Post)]
8786
public async Task<AppResponseBase<ChoiceResponse>> CreateCompletionStreamAsync(string prompt, string model = null, int maxTokens = 50)
8887
{
@@ -146,10 +145,8 @@ public async Task<AppResponseBase<ChoiceResponse>> CreateCompletionStreamAsync(s
146145
/// ChatGPT 接口
147146
/// </summary>
148147
/// <param name="prompt">prompt 提示信息</param>
149-
/// <param name="model">选用模型,如果留空则默认使用 text-davinci-v3</param>
150148
/// <param name="maxTokens">最大消费 Token 数量。默认为 50</param>
151149
/// <returns></returns>
152-
/// <exception cref="NcfExceptionBase"></exception>
153150
[ApiBind(ApiRequestMethod = CO2NET.WebApi.ApiRequestMethod.Post)]
154151
public async Task<AppResponseBase<string>> ChatGPTAsync(string prompt, int maxTokens = 50)
155152
{
@@ -166,7 +163,6 @@ public async Task<AppResponseBase<string>> ChatGPTAsync(string prompt, int maxTo
166163
/// ChatGPT 接口
167164
/// </summary>
168165
/// <returns></returns>
169-
/// <exception cref="NcfExceptionBase"></exception>
170166
[ApiBind(ApiRequestMethod = CO2NET.WebApi.ApiRequestMethod.Post)]
171167
public async Task<AppResponseBase<string>> CleanLastChatGPTAsync()
172168
{

src/back-end/Senparc.Xncf.OpenAI/Senparc.Xncf.OpenAI.csproj

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
<Version>0.1.7-beta1</Version>
55
<AssemblyName>Senparc.Xncf.OpenAI</AssemblyName>
66
<RootNamespace>Senparc.Xncf.OpenAI</RootNamespace>
7+
<AddRazorSupportForMvc>true</AddRazorSupportForMvc>
78
<GeneratePackageOnBuild Condition=" '$(Configuration)' == 'Release' ">true</GeneratePackageOnBuild>
89
<DocumentationFile>..\..\..\BuildOutPut\Senparc.Xncf.OpenAI.XML</DocumentationFile>
910
<Description>OpenAI 和 ChatGPT 接口</Description>
@@ -37,9 +38,6 @@
3738
<PackageReference Include="Senparc.CO2NET.WebApi" Version="1.3.3.7" />
3839
<!--<PackageReference Include="Microsoft.AspNetCore.Mvc.Versioning" Version="5.0.0" />-->
3940
</ItemGroup>
40-
<ItemGroup>
41-
<PackageReference Include="Microsoft.AspNetCore.Authentication.Cookies" Version="2.2.0" />
42-
</ItemGroup>
4341
<ItemGroup>
4442
<PackageReference Include="Senparc.Ncf.DatabasePlant" Version="0.11.6.1-beta9" />
4543
</ItemGroup>
@@ -53,7 +51,7 @@
5351
<PackageReference Include="Microsoft.AspNetCore.Mvc" Version="2.2.0" />
5452
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="5.0.1" />
5553
<!-- 为解决 VS 2019 v16.8 的一个bug,需要添加下方引用 -->
56-
<PackageReference Include="Microsoft.NET.Sdk.Razor" Version="3.1.10" />
54+
<!--<PackageReference Include="Microsoft.NET.Sdk.Razor" Version="3.1.10" />-->
5755
</ItemGroup>
5856
<ItemGroup>
5957
<PackageReference Include="Senparc.Weixin.AspNet" Version="0.8.5.8" />

0 commit comments

Comments
 (0)