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
fixing path
yuneng-jiang94425dff1ee1
diff --git a/litellm/litellm_core_utils/get_blog_posts.py b/litellm/litellm_core_utils/get_blog_posts.pyindex 35d39ac62be..4f054c78ffe 100644--- a/litellm/litellm_core_utils/get_blog_posts.py+++ b/litellm/litellm_core_utils/get_blog_posts.py@@ -99,11 +99,9 @@ class GetBlogPosts:return cls.load_local_blog_posts()now = time.time()- if (- cls._cached_posts is not None- and (now - cls._last_fetch_time) < BLOG_POSTS_TTL_SECONDS- ):- return cls._cached_posts+ cached = cls._cached_posts+ if cached is not None and (now - cls._last_fetch_time) < BLOG_POSTS_TTL_SECONDS:+ return cachedtry:data = cls.fetch_remote_blog_posts(url)@@ -119,9 +117,10 @@ class GetBlogPosts:if not cls.validate_blog_posts(data):return cls.load_local_blog_posts()- cls._cached_posts = data["posts"]+ posts = data["posts"]+ cls._cached_posts = postscls._last_fetch_time = now- return cls._cached_posts+ return postsdef get_blog_posts(url: str) -> List[Dict[str, str]]: