wrong parameters in SparkDeskTextCompletion
pangjianxin opened this issue · 0 comments
pangjianxin commented
there is a obvious error in SparkDeskTextCompletion's GetStreamingTextContentsAsync method:
var functionDefs = functions.Select(func => new FunctionDef(func.Name, func.Description, func.Parameters.Select(p => new FunctionParametersDef(p.Name, p.ParameterType?.IsClass == true ? "object" : "string", func.Description, p.IsRequired)).ToList())).ToList();
func.Description should be p.Description,otherwise the parameters description will be same as the method's description