Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions Samples/Senaprc.AI.Samples.Agents/SampleHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,6 @@ namespace Senparc.AI.Samples.Agents
{
public static class SampleHelper
{
//public static string Default_Chat_ModeName = "gpt-35-turbo";//"chatglm2";//"gpt-35-turbo";//gpt-4-1106
//public static string Default_TextCompletion_ModeName = "text-davinci-003";//gpt-4-1106
//public static string Default_TextEmbedding_ModeName = "text-embedding-ada-002";
//public static string Default_TextCompletion_ModeName = "chatglm2";
//public static string Default_TextEmbedding_ModeName = "chatglm2";

/// <summary>
/// Get AppSettings file name.
/// </summary>
Expand Down
2 changes: 1 addition & 1 deletion src/Senparc.AI.Kernel/Senparc.AI.Kernel.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netstandard2.1</TargetFramework>
<Version>0.16.1.1-beta1</Version>
<Version>0.16.1.2-beta1</Version>
<Nullable>enable</Nullable>
<LangVersion>10.0</LangVersion>
<AssemblyName>Senparc.AI.Kernel</AssemblyName>
Expand Down
8 changes: 4 additions & 4 deletions src/Senparc.AI/Interfaces/ISenparcAiSetting.cs
Original file line number Diff line number Diff line change
Expand Up @@ -135,25 +135,25 @@ public interface ISenparcAiSetting
public bool IsOpenAiKeysSetted { get; }


ModelName ModelName => AiPlatform switch
public ModelName ModelName => AiPlatform switch
{
AiPlatform.OpenAI => OpenAIKeys.ModelName,
AiPlatform.AzureOpenAI => AzureOpenAIKeys.ModelName,
AiPlatform.NeuCharAI => NeuCharAIKeys.ModelName,
AiPlatform.HuggingFace => HuggingFaceKeys.ModelName,
AiPlatform.FastAPI => FastAPIKeys.ModelName,
_ => throw new SenparcAiException($"100-未配置 {AiPlatform} 的 Endpoint 输出")
_ => throw new SenparcAiException($"100-未配置 {AiPlatform} 的 ModelName")
};

#pragma warning disable CS8603 // 可能返回 null 引用。
string DeploymentName => AiPlatform switch
public string DeploymentName => AiPlatform switch
{
AiPlatform.AzureOpenAI => AzureOpenAIKeys.DeploymentName,
AiPlatform.OpenAI => null,
AiPlatform.NeuCharAI => null,
AiPlatform.HuggingFace => null,
AiPlatform.FastAPI => null,
_ => throw new SenparcAiException($"未配置 {AiPlatform} 的 DeploymentName 输出")
_ => throw new SenparcAiException($"未配置 {AiPlatform} 的 DeploymentName")
};
#pragma warning restore CS8603 // 可能返回 null 引用。

Expand Down
3 changes: 2 additions & 1 deletion src/Senparc.AI/Senparc.AI.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netstandard2.1</TargetFramework>
<Version>0.16.0-beta1</Version>
<Version>0.16.1-beta1</Version>
<Nullable>enable</Nullable>
<LangVersion>10.0</LangVersion>
<AssemblyName>Senparc.AI</AssemblyName>
Expand Down Expand Up @@ -46,6 +46,7 @@
v0.16.0
1、添加 SenparcKernelAiResult&lt;T$gt; 类型
2、重命名 IAiResult.Output 为 OutputString
v0.16.1 将 ISenparcAiSetting.ModelName、DeploymentName 从属性改为 public
</PackageReleaseNotes>
<RepositoryUrl>https://github.com/Senparc/Senparc.AI</RepositoryUrl>
<Configurations>Debug;Release;Test</Configurations>
Expand Down