-
-
Notifications
You must be signed in to change notification settings - Fork 530
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FunctionCallingHelper unable to handle array parameter #405
Labels
Comments
please share a code sample |
//Generates a 'Parameter type 'System.Single[]' not supported' Exception when run, any type of array does this
Functions = FunctionCallingHelper.GetFunctionDefinitions<Calculator>();
public class Calculator
{
[FunctionDescription("Adds an array of numbers together.")]
public float Sum(float[] nums)
{
return nums.Sum();
}
} |
How to customize the parameters of the ChatCompletionCreateRequest?,openai Updated, you can carry the file ID, but the current SDK does not seem to be supported,Thanks |
@MayDay-wpf, I have not yet implemented all the changes announced at devday. |
@Kanedsodas I will investigate this, thanks for sharing. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When making a function definition using FunctionCallingHelper if the function has an array for a parameter it just errors, the code for the other method of making function definitions seems to support it however.
The text was updated successfully, but these errors were encountered: