The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]
Python ai-gatewayanthropicazure-openaibedrockgatewaylangchainlitellmllmllm-gatewayllmopsmcp-gatewayopenaiopenai-proxyrustrust-aivertex-ai
[CHORE] Added proper typing
Sunny Wan61ee71745a8f
diff --git a/litellm/llms/snowflake/completion/handler.py b/litellm/llms/snowflake/completion/handler.pyindex 039ae783514..85ec676606e 100644--- a/litellm/llms/snowflake/completion/handler.py+++ b/litellm/llms/snowflake/completion/handler.py@@ -1,11 +1,11 @@from litellm.llms.base import BaseLLMfrom typing import Any, List, Optional-from typing import List, Dict, Callable, Optional, Any,cast+from typing import List, Dict, Callable, Optional, Any, cast, Unionimport litellmfrom litellm.utils import ModelResponsefrom litellm.types.llms.openai import AllMessageValues-+from litellm.llms.custom_httpx.http_handler import AsyncHTTPHandler, HTTPHandlerfrom litellm.llms.openai_like.chat.handler import OpenAILikeChatHandlerfrom ..common_utils import SnowflakeBase@@ -19,18 +19,18 @@ class SnowflakeChatCompletion(OpenAILikeChatHandler,SnowflakeBase):model: str,messages: List[Dict[str, Any]],api_base: str,- acompletion: bool,- custom_prompt_dict: Dict[str, Any],+ custom_prompt_dict: dict,model_response: ModelResponse,print_verbose: Callable,- encoding: Any,+ encoding,JWT: str,- logging_obj: Any,- optional_params: Optional[Dict[str, Any]] = None,- litellm_params: Optional[Dict[str, Any]] = None,- logger_fn: Optional[Callable] = None,- headers: Optional[Dict[str, str]] = None,- client: Optional[Any] = None,+ logging_obj,+ optional_params: dict,+ acompletion=None,+ litellm_params=None,+ logger_fn=None,+ headers: Optional[dict] = None,+ client: Optional[Union[HTTPHandler, AsyncHTTPHandler]] = None,) -> None:messages = litellm.SnowflakeConfig()._transform_messages(