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

Improve key naming clarity and consistency across REST requests #683 #714

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

demoncoder-crypto
Copy link

@demoncoder-crypto demoncoder-crypto commented Mar 11, 2025

… Standardize on camelCase for REST API parameter names - Update README.md to document parameter naming conventions - Create new inline_pdf_example.sh with consistent naming - Fix inconsistent naming in several example files - Fixes #683

Description of the change

Motivation

Type of change

Choose one: (Bug fix | Feature request | Documentation | Other)

Checklist

  • I have performed a self-review of my code.
  • I have added detailed comments to my code where applicable.
  • I have verified that my change does not break existing code.
  • My PR is based on the latest changes of the main branch (if unsure, please run git pull --rebase upstream main).
  • I am familiar with the Google Style Guide for the language I have coded in.
  • I have read through the Contributing Guide and signed the Contributor License Agreement.

… Standardize on camelCase for REST API parameter names - Update README.md to document parameter naming conventions - Create new inline_pdf_example.sh with consistent naming - Fix inconsistent naming in several example files - Fixes google-gemini#683
Copy link

google-cla bot commented Mar 11, 2025

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@github-actions github-actions bot added status:awaiting review PR awaiting review from a maintainer component:python sdk Issue/PR related to Python SDK labels Mar 11, 2025
Copy link

@ossa-ma ossa-ma left a comment

Choose a reason for hiding this comment

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

Need to apply the consistency changes to the following files:

  • samples/rest/count_tokens.sh lines:116-118, line:174, lines:274-275
  • samples/rest/function_calling.sh lines:48-49
  • samples/rest/text_generation.sh line:213, line:263, line:324, line:384, line:434, line:486

I have left the comments on the relevant files too.

Other than that it looks fine to me (creator of the issue).

Copy link

Choose a reason for hiding this comment

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

Need to apply the consistency changes to the following places:

  • samples/rest/text_generation.sh line:213, line:263, line:324, line:384, line:434, line:486

Copy link
Author

Choose a reason for hiding this comment

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

I will fix this immediately

Copy link

Choose a reason for hiding this comment

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

Need to apply the consistency changes to the following files:

  • samples/rest/function_calling.sh lines:48-49

Copy link

Choose a reason for hiding this comment

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

Need to apply the consistency changes to the following files:

  • samples/rest/count_tokens.sh lines:116-118, line:174, lines:274-275

@demoncoder-crypto
Copy link
Author

I have made the asked changes let me know if its upto mark

@ossa-ma
Copy link

ossa-ma commented Mar 11, 2025

Looks good to me but I believe these examples need to be verified and tested by someone internal to Google before they can proceed with merging the PR and closing the issue.

@demoncoder-crypto
Copy link
Author

Thanks. If anything else is needed or any changes. I am always up for it

@Annhiluc Annhiluc added status:triaged Issue/PR triaged to the corresponding sub-team p2 labels Mar 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component:python sdk Issue/PR related to Python SDK p2 status:awaiting review PR awaiting review from a maintainer status:triaged Issue/PR triaged to the corresponding sub-team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Improve key naming clarity and consistency across REST requests
3 participants