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

this project is exciting, but can you provide a use case for the function_call based on gemini-pro? #39

Open
Sumnus00 opened this issue Dec 29, 2023 · 1 comment
Labels
good first issue Good for newcomers solved For those issues already solved but stay open for more user can see

Comments

@Sumnus00
Copy link

Because gemini-pro is fast and free.

@Maplemx
Copy link
Owner

Maplemx commented Dec 29, 2023

sure, in fact you can simply change settings to use Gemini Pro

firstly, clone / copy this file to your workspace: https://github.com/Maplemx/Agently/blob/main/playground/function_calling.py

then, find this part of code:

agent_factory\
    .set_settings("current_model", "ERNIE")\
    .set_settings("model.ERNIE.model_name", "ERNIE")\
    .set_settings("model.ERNIE.auth", { "aistudio": "<YOUR-ERNIE-ACCESS-TOKEN>" })

change it to:

agent_factory\
   .set_settings("current_model", "Google")\
   .set_settings("model.Google.auth". { "api_key": "<Your-Google-API-Key-Here>" })

then you can use Gemini Pro to drive the agent to do function calling.

To explore more, you can read: https://github.com/Maplemx/Agently/blob/main/docs/guidebook/application_development_handbook.ipynb

@Maplemx Maplemx added the good first issue Good for newcomers label Jan 24, 2024
@Maplemx Maplemx added the solved For those issues already solved but stay open for more user can see label Feb 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers solved For those issues already solved but stay open for more user can see
Projects
None yet
Development

No branches or pull requests

2 participants