Open Sumnus00 opened 6 months ago
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
Because gemini-pro is fast and free.