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

Implement req_ellmer_user_agent() #351

Merged
merged 4 commits into from
Mar 5, 2025
Merged

Implement req_ellmer_user_agent() #351

merged 4 commits into from
Mar 5, 2025

Conversation

hadley
Copy link
Member

@hadley hadley commented Mar 4, 2025

Fixes #341

@hadley hadley requested a review from atheriel March 4, 2025 23:59
@@ -163,7 +163,7 @@ method(chat_request, ProviderCortex) <- function(provider,
req <- ellmer_req_credentials(req, provider@credentials)
req <- req_retry(req, max_tries = 2)
req <- ellmer_req_timeout(req, stream)
req <- req_user_agent(req, snowflake_user_agent())
req <- ellmer_req_user_agent(req, Sys.getenv("SF_PARTNER"))
Copy link
Collaborator

Choose a reason for hiding this comment

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

We might have to adjust this slightly more for Snowflake specifically. I know they're having issues with our existing user agents. But that probably belongs in a followup PR, not this one.

@hadley hadley merged commit fad8366 into main Mar 5, 2025
11 checks passed
@hadley hadley deleted the user-agent branch March 5, 2025 14:12
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.

Add req_ellmer_user_agent()
2 participants