Skip to content

Commit 1f97a7a

Browse files
committed
deprecate prompt cache in sdk/cli
1 parent b9d8e10 commit 1f97a7a

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

src/together/resources/endpoints.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
from __future__ import annotations
22

3+
import warnings
34
from typing import Dict, List, Literal, Optional, Union
45

56
from together.abstract import api_requestor
@@ -96,6 +97,12 @@ def create(
9697
Returns:
9798
DedicatedEndpoint: Object containing endpoint information
9899
"""
100+
if disable_prompt_cache:
101+
warnings.warn(
102+
"The 'disable_prompt_cache' parameter (CLI flag: '--no-prompt-cache') is deprecated and will be removed in a future version.",
103+
stacklevel=2,
104+
)
105+
99106
requestor = api_requestor.APIRequestor(
100107
client=self._client,
101108
)
@@ -389,6 +396,12 @@ async def create(
389396
Returns:
390397
DedicatedEndpoint: Object containing endpoint information
391398
"""
399+
if disable_prompt_cache:
400+
warnings.warn(
401+
"The 'disable_prompt_cache' parameter (CLI flag: '--no-prompt-cache') is deprecated and will be removed in a future version.",
402+
stacklevel=2,
403+
)
404+
392405
requestor = api_requestor.APIRequestor(
393406
client=self._client,
394407
)

0 commit comments

Comments
 (0)