Skip to content

Conversation

@bnarasimha21
Copy link
Collaborator

When the Gradient SDK is used in integrations (e.g., langchain-gradient), passing user agent information from these integrations allows us to track token usage originating from them.

timeout: float | Timeout | None = DEFAULT_TIMEOUT,
custom_headers: Mapping[str, str] | None = None,
custom_query: Mapping[str, object] | None = None,
user_agent: str | None = None,
Copy link
Collaborator

Choose a reason for hiding this comment

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

Maybe rename this user_agent_package or something as user_agent sets the expectation you can override the whole string.

@bbatha bbatha merged commit 21e7aae into digitalocean:main Sep 18, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants