Skip to content
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

Open
Kanedsodas opened this issue Nov 5, 2023 · 5 comments · May be fixed by #504
Open

FunctionCallingHelper unable to handle array parameter #405

Kanedsodas opened this issue Nov 5, 2023 · 5 comments · May be fixed by #504
Assignees
Labels
enhancement New feature or request Work In Progress

Comments

@Kanedsodas
Copy link

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.

@kayhantolga
Copy link
Member

please share a code sample

@kayhantolga kayhantolga added the enhancement New feature or request label Nov 6, 2023
@Kanedsodas
Copy link
Author

//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();
    }
}

@MayDay-wpf
Copy link

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

@kayhantolga
Copy link
Member

@MayDay-wpf, I have not yet implemented all the changes announced at devday.

@kayhantolga
Copy link
Member

@Kanedsodas I will investigate this, thanks for sharing.

@kayhantolga kayhantolga self-assigned this Apr 2, 2024
@kayhantolga kayhantolga added this to the 7.4.7 milestone Apr 3, 2024
@kayhantolga kayhantolga modified the milestones: 7.4.7, 8.0.1 Apr 6, 2024
@kayhantolga kayhantolga modified the milestones: 8.0.1, 8.0.3 Apr 15, 2024
@kayhantolga kayhantolga removed this from the 8.4.2 milestone Oct 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Work In Progress
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants