21
21
async_to_streamed_response_wrapper ,
22
22
)
23
23
from .._base_client import make_request_options
24
- from ..types .parameters import Parameters
25
24
from ..types .prompt_configuration import PromptConfiguration
26
25
from ..types .prompt_list_response import PromptListResponse
27
26
from ..types .prompt_delete_response import PromptDeleteResponse
27
+ from ..types .prompt_get_parameters_response import PromptGetParametersResponse
28
28
29
29
__all__ = ["PromptsResource" , "AsyncPromptsResource" ]
30
30
@@ -228,7 +228,7 @@ def get_parameters(
228
228
extra_query : Query | None = None ,
229
229
extra_body : Body | None = None ,
230
230
timeout : float | httpx .Timeout | None | NotGiven = NOT_GIVEN ,
231
- ) -> Parameters :
231
+ ) -> PromptGetParametersResponse :
232
232
"""
233
233
Fetches the configured model parameters and messages rendered with the provided
234
234
variables mapped to the set LLM provider. This endpoint abstracts the need to
@@ -257,7 +257,7 @@ def get_parameters(
257
257
if not id :
258
258
raise ValueError (f"Expected a non-empty value for `id` but received { id !r} " )
259
259
return cast (
260
- Parameters ,
260
+ PromptGetParametersResponse ,
261
261
self ._post (
262
262
f"/sdk/v1/prompts/{ id } " ,
263
263
body = maybe_transform (
@@ -272,7 +272,9 @@ def get_parameters(
272
272
options = make_request_options (
273
273
extra_headers = extra_headers , extra_query = extra_query , extra_body = extra_body , timeout = timeout
274
274
),
275
- cast_to = cast (Any , Parameters ), # Union types cannot be passed in as arguments in the type system
275
+ cast_to = cast (
276
+ Any , PromptGetParametersResponse
277
+ ), # Union types cannot be passed in as arguments in the type system
276
278
),
277
279
)
278
280
@@ -476,7 +478,7 @@ async def get_parameters(
476
478
extra_query : Query | None = None ,
477
479
extra_body : Body | None = None ,
478
480
timeout : float | httpx .Timeout | None | NotGiven = NOT_GIVEN ,
479
- ) -> Parameters :
481
+ ) -> PromptGetParametersResponse :
480
482
"""
481
483
Fetches the configured model parameters and messages rendered with the provided
482
484
variables mapped to the set LLM provider. This endpoint abstracts the need to
@@ -505,7 +507,7 @@ async def get_parameters(
505
507
if not id :
506
508
raise ValueError (f"Expected a non-empty value for `id` but received { id !r} " )
507
509
return cast (
508
- Parameters ,
510
+ PromptGetParametersResponse ,
509
511
await self ._post (
510
512
f"/sdk/v1/prompts/{ id } " ,
511
513
body = await async_maybe_transform (
@@ -520,7 +522,9 @@ async def get_parameters(
520
522
options = make_request_options (
521
523
extra_headers = extra_headers , extra_query = extra_query , extra_body = extra_body , timeout = timeout
522
524
),
523
- cast_to = cast (Any , Parameters ), # Union types cannot be passed in as arguments in the type system
525
+ cast_to = cast (
526
+ Any , PromptGetParametersResponse
527
+ ), # Union types cannot be passed in as arguments in the type system
524
528
),
525
529
)
526
530
0 commit comments