utils

Utility functions for Google services.

pipecat.services.google.utils.update_google_client_http_options(http_options: dict[str, Any] | Any | None) Any[source]

Updates http_options with the x-goog-api-client header.

Parameters:

http_options – The existing http_options, which can be None, a dictionary, or an object with a ‘headers’ attribute.

Returns:

The updated http_options.