From b5b5872c1b79df0dab0299c8c9c4b09ac258cd7d Mon Sep 17 00:00:00 2001 From: danyalxahid-askui Date: Tue, 30 Dec 2025 18:48:51 +0100 Subject: [PATCH] refactor: remove functools.cache decorator from create_api_client function for unauthorized issues after token expiry --- src/askui/models/anthropic/factory.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/askui/models/anthropic/factory.py b/src/askui/models/anthropic/factory.py index 4b81102d..27bd516f 100644 --- a/src/askui/models/anthropic/factory.py +++ b/src/askui/models/anthropic/factory.py @@ -1,4 +1,3 @@ -import functools from typing import Literal from anthropic import Anthropic, AnthropicBedrock, AnthropicVertex @@ -9,7 +8,6 @@ AnthropicApiClient = Anthropic | AnthropicBedrock | AnthropicVertex -@functools.cache def create_api_client( api_provider: AnthropicApiProvider, ) -> AnthropicApiClient: