fix: Snowflake PAT auth and Claude streaming support - #38
Merged
Conversation
- Add PAT token detection with pat/ prefix handling - Strip pat/ prefix and set PROGRAMMATIC_ACCESS_TOKEN header type - Add custom streaming handler for Claude models missing 'created' field
3 tasks
mateo-di
added a commit
that referenced
this pull request
Feb 10, 2026
…, #58 Port 5 CARTO features that were silently dropped during the v1.81.0 upstream sync due to class hierarchy refactoring: - Add SnowflakeStreamingHandler for missing 'created' field and Claude-format tool_use -> OpenAI tool_calls transformation - Add _transform_messages() for role="tool" -> Snowflake content_list - Enhance _transform_tool_choice() to convert strings to Snowflake object format (e.g. "auto" -> {"type": "auto"}) - Add get_model_response_iterator() override - Default tool_choice to "auto" when tools present in Responses API Also adds .github/carto-features.yml manifest to track critical customizations and prevent future sync regressions.
mateo-di
added a commit
that referenced
this pull request
Feb 10, 2026
Static registry of critical CARTO customizations that must survive upstream syncs. The resolver should verify all patterns exist after every sync to prevent silent feature regressions (like the OCI Gemini and Snowflake tool calling drops in v1.81.0). Tracks: OCI Gemini (#68), Snowflake streaming/tool calling (#38, #58), Azure URL stripping (#70), JSON repair (#54), Redis sessions (#16).
3 tasks
3 tasks
This was referenced Apr 10, 2026
3 tasks
3 tasks
3 tasks
3 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR addresses two critical issues with the Snowflake provider:
1. PAT Token Authentication Failure
2. Claude Model Streaming Failure
Changes
litellm/llms/snowflake/chat/transformation.py: Added PAT detection logic and custom streaming handlerlitellm/llms/snowflake/common_utils.py: Added PAT detection logictests/test_litellm/llms/snowflake/chat/test_snowflake_chat_transformation.py: Added comprehensive test coverage for both fixesTesting
Model Compatibility