在配置好模型以后(GTP3.5),在聊天窗口发送信息:查询订单123的信息,代码运行到ChatService->SendChatByAppAsync方法第104行时报错:空指针错误
具体错误信息如下:
System.NullReferenceException
HResult=0x80004003
Message=Object reference not set to an instance of an object.
Source=Microsoft.SemanticKernel.Core
StackTrace:
在 Microsoft.SemanticKernel.Text.TextChunker.InternalSplitLines(String text, Int32 maxTokensPerLine, Boolean trim, String[] splitOptions, TokenCounter tokenCounter)
在 Microsoft.SemanticKernel.Text.TextChunker.SplitPlainTextLines(String text, Int32 maxTokensPerLine, TokenCounter tokenCounter)
在 Microsoft.SemanticKernel.Plugins.Core.ConversationSummaryPlugin.d__8.MoveNext()
在 Microsoft.SemanticKernel.KernelFunctionFromMethod.<>c.<b__13_4>d.MoveNext()
在 System.Threading.Tasks.ValueTask1.get_Result() 在 Microsoft.SemanticKernel.KernelFunction.<InvokeAsync>d__18.MoveNext() 在 Microsoft.SemanticKernel.TemplateEngine.CodeBlock.<RenderFunctionCallAsync>d__10.MoveNext() 在 System.Threading.Tasks.ValueTask1.get_Result()
在 Microsoft.SemanticKernel.KernelPromptTemplate.d__5.MoveNext()
在 Microsoft.SemanticKernel.KernelFunctionFromPrompt.d__16.MoveNext()
在 Microsoft.SemanticKernel.KernelFunctionFromPrompt.d__41.MoveNext() 在 Microsoft.SemanticKernel.KernelFunctionFromPrompt.<InvokeStreamingCoreAsync>d__41.System.Threading.Tasks.Sources.IValueTaskSource<System.Boolean>.GetResult(Int16 token)
在 Microsoft.SemanticKernel.KernelFunction.d__211.MoveNext() 在 Microsoft.SemanticKernel.KernelFunction.<InvokeStreamingAsync>d__211.MoveNext()
在 Microsoft.SemanticKernel.KernelFunction.d__21`1.System.Threading.Tasks.Sources.IValueTaskSource<System.Boolean>.GetResult(Int16 token)
在 Sigma.Core.Domain.Service.ChatService.<>c__DisplayClass5_0.<g__Execute|0>d.MoveNext() 在 D:\GitRepository\SigmaAI\src\Sigma.Core\Domain\Service\ChatService.cs 中: 第 104 行
此异常最初是在此调用堆栈中引发的:
[外部代码]
Sigma.Core.Domain.Service.ChatService.SendChatByAppAsync.__Execute|0() (位于 ChatService.cs 中)
请问该问题是什么原因引起的呢?
另外,在“新建模型”功能里面有一个Function Call的配置,打开代表要添加意图识别prompt,这样做的好处是不是可能增加大模型进行native function调用的几率
在配置好模型以后(GTP3.5),在聊天窗口发送信息:查询订单123的信息,代码运行到ChatService->SendChatByAppAsync方法第104行时报错:空指针错误
具体错误信息如下:
System.NullReferenceException
HResult=0x80004003
Message=Object reference not set to an instance of an object.
Source=Microsoft.SemanticKernel.Core
StackTrace:
在 Microsoft.SemanticKernel.Text.TextChunker.InternalSplitLines(String text, Int32 maxTokensPerLine, Boolean trim, String[] splitOptions, TokenCounter tokenCounter)
在 Microsoft.SemanticKernel.Text.TextChunker.SplitPlainTextLines(String text, Int32 maxTokensPerLine, TokenCounter tokenCounter)
在 Microsoft.SemanticKernel.Plugins.Core.ConversationSummaryPlugin.d__8.MoveNext()
在 Microsoft.SemanticKernel.KernelFunctionFromMethod.<>c.<b__13_4>d.MoveNext()
在 System.Threading.Tasks.ValueTask
1.get_Result() 在 Microsoft.SemanticKernel.KernelFunction.<InvokeAsync>d__18.MoveNext() 在 Microsoft.SemanticKernel.TemplateEngine.CodeBlock.<RenderFunctionCallAsync>d__10.MoveNext() 在 System.Threading.Tasks.ValueTask1.get_Result()在 Microsoft.SemanticKernel.KernelPromptTemplate.d__5.MoveNext()
在 Microsoft.SemanticKernel.KernelFunctionFromPrompt.d__16.MoveNext()
在 Microsoft.SemanticKernel.KernelFunctionFromPrompt.d__4
1.MoveNext() 在 Microsoft.SemanticKernel.KernelFunctionFromPrompt.<InvokeStreamingCoreAsync>d__41.System.Threading.Tasks.Sources.IValueTaskSource<System.Boolean>.GetResult(Int16 token)在 Microsoft.SemanticKernel.KernelFunction.d__21
1.MoveNext() 在 Microsoft.SemanticKernel.KernelFunction.<InvokeStreamingAsync>d__211.MoveNext()在 Microsoft.SemanticKernel.KernelFunction.d__21`1.System.Threading.Tasks.Sources.IValueTaskSource<System.Boolean>.GetResult(Int16 token)
在 Sigma.Core.Domain.Service.ChatService.<>c__DisplayClass5_0.<g__Execute|0>d.MoveNext() 在 D:\GitRepository\SigmaAI\src\Sigma.Core\Domain\Service\ChatService.cs 中: 第 104 行
此异常最初是在此调用堆栈中引发的:
[外部代码]
Sigma.Core.Domain.Service.ChatService.SendChatByAppAsync.__Execute|0() (位于 ChatService.cs 中)
请问该问题是什么原因引起的呢?
另外,在“新建模型”功能里面有一个Function Call的配置,打开代表要添加意图识别prompt,这样做的好处是不是可能增加大模型进行native function调用的几率