Require Pointer Type
Closed this issue · 5 comments
Lenstack commented
Lenstack commented
We could use Type: openai.AssistantToolTypeFunction, Function: &openai.FunctionDefinition{}
henomis commented
@Lenstack I don't understand your issue. Please check imports and be sure to alias lingoose's openai to avoid conflicts with the go openai package.
Lenstack commented
@henomis Internally, lingoose uses "github.com/sashabaranov/go-openai". Therefore, in the implementation of getChatCompletionRequestTools, when using openai.FunctionDefinition{}, it requires to be called as &openai.FunctionDefinition{} because "FunctionDefinition" is a pointer.
henomis commented
henomis commented
As there's been no follow-up on the requested changes, I'm closing this issue.