Skip to content

fix(generative_ai): fix typos in function calling sample #12679

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

Conversation

Valeriy-Burlaka
Copy link
Member

Description

Fixes minor issues in the function_calling/parallel_function_calling_example

Checklist

  • I have followed Sample Guidelines from AUTHORING_GUIDE.MD
  • README is updated to include all relevant information
  • Tests pass: nox -s py-3.8 & nox -s py-3.11
  • Lint pass: nox -s lint
  • These samples need a new API enabled in testing projects to pass (let us know which ones)
  • These samples need a new/updated env vars in testing projects set to pass (let us know which ones)
  • This sample adds a new sample directory, and I updated the CODEOWNERS file with the codeowners for this sample
  • This sample adds a new Product API, and I updated the Blunderbuss issue/PR auto-assigner with the codeowners for this sample
  • Please merge this PR for me once it is approved

@Valeriy-Burlaka Valeriy-Burlaka requested review from a team as code owners October 8, 2024 14:05
@product-auto-label product-auto-label bot added the samples Issues that are directly related to samples. label Oct 8, 2024
@Valeriy-Burlaka Valeriy-Burlaka self-assigned this Oct 8, 2024
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nits:

  1. Please remove the empty line before # [END generativeaionvertexai_function_calling_generate_parallel_calls]
  2. Add an empty line after import vertexai

Copy link
Member Author

@Valeriy-Burlaka Valeriy-Burlaka Oct 8, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. Looks like a common problem in many samples. Curious if it can or should be enforced by the linter 🤔 Fixed my 5 cases manually.
  2. Also a common problem. I can check what's up with our lint/import-order, I guess 😺
    UPD: I don't see anything for this in flake8-import-order, unfortunately. I201 will not identify this as a separate import group — they're both 3rd-parties. For now, fixed manually.

@msampathkumar msampathkumar changed the title fix: minor fixes for parallel_function_calling sample (typo, long lines) fix(generative_ai): fix typos in function calling sample Oct 8, 2024
@msampathkumar
Copy link
Member

CICD error - ResourceExhausted: 429 Unable to submit request because the service is temporarily out of capacity. Try again later.

As suggested, let us check and re-run this after sometime.

@Valeriy-Burlaka Valeriy-Burlaka added the kokoro:run Add this label to force Kokoro to re-run the tests. label Oct 8, 2024
@kokoro-team kokoro-team removed the kokoro:run Add this label to force Kokoro to re-run the tests. label Oct 8, 2024
Copy link
Member

@msampathkumar msampathkumar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. CICD tests are passing.

@msampathkumar msampathkumar merged commit 1485c42 into GoogleCloudPlatform:main Oct 9, 2024
11 checks passed
@Valeriy-Burlaka Valeriy-Burlaka deleted the vburlaka-genai-fix-parallel-function-calling branch October 9, 2024 12:51
jacspa96 pushed a commit to jacspa96/python-docs-samples that referenced this pull request Oct 30, 2024
…Platform#12679)

* Fix typos in the function declaration 'description'; wrap long line
* Code formatting in generative_ai/function_calling/parallel_function_calling_example.py

Co-authored-by: Sampath Kumar <sam1990kumar@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs review samples Issues that are directly related to samples.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants