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

Function calling support #14

Closed
huytool157 opened this issue Dec 14, 2023 · 9 comments
Closed

Function calling support #14

huytool157 opened this issue Dec 14, 2023 · 9 comments
Labels
enhancement New feature or request

Comments

@huytool157
Copy link

I don't see function calling support for the Node SDK. Is it coming soon? It's a bit inconvenient to maintain native SDK and raw fetch code at the same time!

@hsubox76 hsubox76 added the enhancement New feature or request label Dec 14, 2023
@marb2000
Copy link

Thank you for submitting this feature request! We're definitely interested in supporting Function Calling in the SDK. While we don't have a specific timeline yet, we'll keep you updated on our progress.

@dannycortesv
Copy link

Looking forward to this feature

@geekysam7
Copy link

following

2 similar comments
@Neeraj319
Copy link

following

@chardx
Copy link

chardx commented Feb 13, 2024

following

@jsomeara
Copy link

Hey it's been 2 months. No progress....

@luizguilhermesj
Copy link

+1

@aroytman
Copy link

aroytman commented Mar 9, 2024

+1

FYI, all that it takes to support Function Calling is to allow to specify the API VERSION. Can this be added as a customizable parameter instead of hardcoded in the package?

As a hack, you can currently open the node_modules/@google/generative-ai/dist/index.js file and change the API_VERSION constant on line 156 from "v1" to "v1beta", and Function Calling starts working.

@hsubox76
Copy link
Collaborator

We've just merged and released both of these things:
#56 - API version switching support
#32 - Basic function calling

Documentation:
See the new tools property that can be passed to getGenerativeModel through modelParams.
https://github.com/google/generative-ai-js/blob/main/docs/reference/generative-ai.modelparams.md

We also are working on automatic function calling in ChatSession and hope to have that out soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

10 participants