-
Notifications
You must be signed in to change notification settings - Fork 36
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
Require Pointer Type #185
Comments
We could use Type: openai.AssistantToolTypeFunction, Function: &openai.FunctionDefinition{} |
@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. |
@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. |
As there's been no follow-up on the requested changes, I'm closing this issue. |
lingoose/llm/openai/openai.go
Line 346 in 7ea0cd0
The text was updated successfully, but these errors were encountered: