From 1f97a7acf5b970cf8345db4a65befe1f128c4e41 Mon Sep 17 00:00:00 2001 From: mitali401 Date: Tue, 20 Jan 2026 14:07:12 -0800 Subject: [PATCH] deprecate prompt cache in sdk/cli --- src/together/resources/endpoints.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/together/resources/endpoints.py b/src/together/resources/endpoints.py index ba84c01..2036b82 100644 --- a/src/together/resources/endpoints.py +++ b/src/together/resources/endpoints.py @@ -1,5 +1,6 @@ from __future__ import annotations +import warnings from typing import Dict, List, Literal, Optional, Union from together.abstract import api_requestor @@ -96,6 +97,12 @@ def create( Returns: DedicatedEndpoint: Object containing endpoint information """ + if disable_prompt_cache: + warnings.warn( + "The 'disable_prompt_cache' parameter (CLI flag: '--no-prompt-cache') is deprecated and will be removed in a future version.", + stacklevel=2, + ) + requestor = api_requestor.APIRequestor( client=self._client, ) @@ -389,6 +396,12 @@ async def create( Returns: DedicatedEndpoint: Object containing endpoint information """ + if disable_prompt_cache: + warnings.warn( + "The 'disable_prompt_cache' parameter (CLI flag: '--no-prompt-cache') is deprecated and will be removed in a future version.", + stacklevel=2, + ) + requestor = api_requestor.APIRequestor( client=self._client, )