Skip to content

Commit 1cb4cf8

Browse files
refactor: remove functools.cache decorator from create_api_client function for unauthorized issues after token expiry (#218)
1 parent 95f8e30 commit 1cb4cf8

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

src/askui/models/anthropic/factory.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import functools
21
from typing import Literal
32

43
from anthropic import Anthropic, AnthropicBedrock, AnthropicVertex
@@ -9,7 +8,6 @@
98
AnthropicApiClient = Anthropic | AnthropicBedrock | AnthropicVertex
109

1110

12-
@functools.cache
1311
def create_api_client(
1412
api_provider: AnthropicApiProvider,
1513
) -> AnthropicApiClient:

0 commit comments

Comments
 (0)