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

Method not found: 'Void OpenAI.Builders.FunctionDefinitionBuilder..ctor(System.String, System.String) on GetToolDefinitions #649

Open
WilbertE opened this issue Oct 8, 2024 · 1 comment

Comments

@WilbertE
Copy link

WilbertE commented Oct 8, 2024

Describe the bug
I get an error on this line:
var tools = FunctionCallingHelper.GetToolDefinitions<[MyClass]>();
When upgrading Betalgo.OpenAI from 8.6.2 to 8.7.1.
The Betalgo.OpenAI.Utilities is version 8.1.0

The exception is: `Method not found: 'Void OpenAI.Builders.FunctionDefinitionBuilder..ctor(System.String, System.String)'

The stacktrace is:

  at OpenAI.Utilities.FunctionCalling.FunctionCallingHelper.GetFunctionDefinition(MethodInfo methodInfo)
   at OpenAI.Utilities.FunctionCalling.FunctionCallingHelper.GetToolDefinition(MethodInfo methodInfo)
   at OpenAI.Utilities.FunctionCalling.FunctionCallingHelper.<>c.<GetToolDefinitions>b__4_2(<>f__AnonymousType02 t)
   at System.Linq.Enumerable.WhereSelectEnumerableIterator2.ToList()
   at OpenAI.Utilities.FunctionCalling.FunctionCallingHelper.GetToolDefinitions(Type type)
   at OpenAI.Utilities.FunctionCalling.FunctionCallingHelper.GetToolDefinitions[T]()
@aow99
Copy link

aow99 commented Oct 26, 2024

Same. Will try reverting back as a work around. Edit: Reverting to 8.6.2 mitigated it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants