-
Notifications
You must be signed in to change notification settings - Fork 6.4k
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
feat: (Gen AI): Add sample for Gemini parallel function calling example #12637
base: main
Are you sure you want to change the base?
feat: (Gen AI): Add sample for Gemini parallel function calling example #12637
Conversation
|
||
# Initialize Gemini model | ||
model = GenerativeModel( | ||
model_name="gemini-1.5-pro-001", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you try to use this model ?
model_name="gemini-1.5-pro-001", | |
model_name="gemini-1.5-pro-002", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @msampathkumar ! Thanks, updated.
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
import backoff |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you update this filename to test_function_calling.py
? This follows a syntax of test_<parent_folder_name>.py
. Going forward I wish to have only 1 test file for each folder.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are 2 other test files in this directory: chat_function_calling_test.py and examples_function_calling_test.py. Should I consolidate those tests inside the test_function_calling.py
file as well?
Thanks!
Here is the summary of changes. You are about to add 1 region tag.
This comment is generated by snippet-bot.
|
Description
Adds a new sample for the "Update the context cache using its expire_time parameter" section of the
multimodal/function-calling
Vertex AI page.Checklist
nox -s py-3.8
andnox -s py-3.11
nox -s lint