Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions src/together/resources/endpoints.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
from __future__ import annotations

import warnings
from typing import Dict, List, Literal, Optional, Union

from together.abstract import api_requestor
Expand Down Expand Up @@ -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,
)
Expand Down Expand Up @@ -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,
)
Expand Down