Title: Client identification for Gemini API · Issue #19 · VapiAI/server-sdk-python · GitHub
Open Graph Title: Client identification for Gemini API · Issue #19 · VapiAI/server-sdk-python
X Title: Client identification for Gemini API · Issue #19 · VapiAI/server-sdk-python
Description: Hey team, would it be possible to add the following client identification to the library to help us track usage origins better? X-Goog-Api-Client: API client identification. The value is a space-separated list of NAME "/" SEMVER strings,...
Open Graph Description: Hey team, would it be possible to add the following client identification to the library to help us track usage origins better? X-Goog-Api-Client: API client identification. The value is a space-se...
X Description: Hey team, would it be possible to add the following client identification to the library to help us track usage origins better? X-Goog-Api-Client: API client identification. The value is a space-se...
Opengraph URL: https://github.com/VapiAI/server-sdk-python/issues/19
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Client identification for Gemini API","articleBody":"Hey team, would it be possible to add the following client identification to the library to help us track usage origins better? \n\n`X-Goog-Api-Client`: API client identification. The value is a space-separated list of NAME \"/\" SEMVER strings, where the NAME should only contain lowercase letters, digits, and \"-\", and the SEMVER should be a semantic version string. For example: X-Goog-Api-Client: python/3.5.0 grpc-google-pubsub-v1/0.1.0-beta2 linux/2.7.0.\n\nSee system parameter docs here: https://docs.cloud.google.com/apis/docs/system-parameters \n\n```\nExample: \n## Python:\n\nfrom google import genai\n\nclient = genai.Client(\n api_key=\"...\",\n http_options={\n \"headers\": {\n \"x-goog-api-client\": \"my-sdk-py/1.23\",\n }\n }\n)\n\n## JavaScript\nimport { GoogleGenAI } from '@google/genai';\n\nconst ai = new GoogleGenAI({\n apiKey: '...',\n httpOptions: {\n headers: {\n 'x-goog-api-client': 'my-sdk-js/1.23'\n }\n }\n});\n\n## Direct API\ncurl https://generativelanguage.googleapis.com/v1beta/models/gemini-2.5-flash:generateContent?key=$GOOGLE_API_KEY \\\n -H 'Content-Type: application/json'\n -H 'X-Goog-Api-Client: my-sdk/1.23'\n -d '{...}'\n```\n\nYou can see an example implementation of that client identification in the SDK here: https://github.com/google/adk-python/blob/main/src/google/adk/models/google_llm.py#L262-L272","author":{"url":"https://github.com/thorwebdev","@type":"Person","name":"thorwebdev"},"datePublished":"2025-12-02T21:10:44.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/19/server-sdk-python/issues/19"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:9dcd997c-765d-85d1-f9e5-af83cbcabcc2 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D82A:191A63:19103B5:21D86B3:697A9E31 |
| html-safe-nonce | ad5940d3931a6be9facdd064ed1205597d3244a958411a47307a7ca75226ffea |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEODJBOjE5MUE2MzoxOTEwM0I1OjIxRDg2QjM6Njk3QTlFMzEiLCJ2aXNpdG9yX2lkIjoiMjAxNDcxMTk0NzA2Mzg5MzU1MyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | bd0099f3b3339fc5d01147db99cdae70dbd7ca67af2db1e7353cde5cfd195b13 |
| hovercard-subject-tag | issue:3687553119 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/VapiAI/server-sdk-python/19/issue_layout |
| twitter:image | https://opengraph.githubassets.com/024a19f43ece33636658df7f960c644afb25e33d69ff741b076e9500ed58a19d/VapiAI/server-sdk-python/issues/19 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/024a19f43ece33636658df7f960c644afb25e33d69ff741b076e9500ed58a19d/VapiAI/server-sdk-python/issues/19 |
| og:image:alt | Hey team, would it be possible to add the following client identification to the library to help us track usage origins better? X-Goog-Api-Client: API client identification. The value is a space-se... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | thorwebdev |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4d375b6c612de26fd037e0638eaf57e32cf9b16daf53ab68c25c04cd3b058113 |
| turbo-cache-control | no-preview |
| go-import | github.com/VapiAI/server-sdk-python git https://github.com/VapiAI/server-sdk-python.git |
| octolytics-dimension-user_id | 144965430 |
| octolytics-dimension-user_login | VapiAI |
| octolytics-dimension-repository_id | 858207722 |
| octolytics-dimension-repository_nwo | VapiAI/server-sdk-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 858207722 |
| octolytics-dimension-repository_network_root_nwo | VapiAI/server-sdk-python |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 9af1d97e0cdcced8d2b1d10d909b84c76e62924a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width