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, )