Skip to content

Commit c5c7fe3

Browse files
stainless-app[bot]stainless-bot
authored andcommitted
feat(api): OpenAPI spec update via Stainless API (#213)
1 parent 639707d commit c5c7fe3

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

.stats.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
configured_endpoints: 22
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/prompt-foundry%2Fprompt-foundry-sdk-9cff8ea13f14bd0899df69243fe78b4f88d4d0172263aa260af1ea66a7d0484e.yml
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/prompt-foundry%2Fprompt-foundry-sdk-e8bee356492945c6a488f721b7e79b4f8a55c1edabfed4e2817729017f1ae43d.yml

src/prompt_foundry_python_sdk/resources/prompts.py

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -230,9 +230,10 @@ def get_parameters(
230230
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
231231
) -> ModelParameters:
232232
"""
233-
Fetches the model configuration parameters for a specified prompt, including
234-
penalty settings, response format, and the model messages rendered with the
235-
given variables mapped to the set LLM provider.
233+
Fetches the configured model parameters and messages rendered with the provided
234+
variables mapped to the set LLM provider. This endpoint abstracts the need to
235+
handle mapping between different providers, while still allowing direct calls to
236+
the providers.
236237
237238
Args:
238239
append_messages: Appended the the end of the configured prompt messages before running the
@@ -477,9 +478,10 @@ async def get_parameters(
477478
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
478479
) -> ModelParameters:
479480
"""
480-
Fetches the model configuration parameters for a specified prompt, including
481-
penalty settings, response format, and the model messages rendered with the
482-
given variables mapped to the set LLM provider.
481+
Fetches the configured model parameters and messages rendered with the provided
482+
variables mapped to the set LLM provider. This endpoint abstracts the need to
483+
handle mapping between different providers, while still allowing direct calls to
484+
the providers.
483485
484486
Args:
485487
append_messages: Appended the the end of the configured prompt messages before running the

0 commit comments

Comments
 (0)