Skip to content
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "0.1.0-alpha.3"
".": "0.1.0-alpha.4"
}
2 changes: 1 addition & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
configured_endpoints: 21
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/prompt-foundry%2Fprompt-foundry-sdk-5099b2b6ce467e4cae4520a778d3149d96ddf1331960860509028e7e2ac4b3f7.yml
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/prompt-foundry%2Fprompt-foundry-sdk-972b22a25d0d8bc0d4434735eb429ca11023968e7f14a1a39d48a1949386aa3b.yml
20 changes: 20 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,25 @@
# Changelog

## 0.1.0-alpha.4 (2024-06-25)

Full Changelog: [v0.1.0-alpha.3...v0.1.0-alpha.4](https://github.com/prompt-foundry/python-sdk/compare/v0.1.0-alpha.3...v0.1.0-alpha.4)

### Features

* **api:** OpenAPI spec update via Stainless API ([#56](https://github.com/prompt-foundry/python-sdk/issues/56)) ([0ed089b](https://github.com/prompt-foundry/python-sdk/commit/0ed089ba5a1b1ea3cf445ddb0e49bd5340b9bafd))
* **api:** OpenAPI spec update via Stainless API ([#57](https://github.com/prompt-foundry/python-sdk/issues/57)) ([7180cd5](https://github.com/prompt-foundry/python-sdk/commit/7180cd5ea9335d1abc41329a26d0fe9a0cfd863f))
* **api:** OpenAPI spec update via Stainless API ([#58](https://github.com/prompt-foundry/python-sdk/issues/58)) ([9f8a390](https://github.com/prompt-foundry/python-sdk/commit/9f8a3905eadb6876edc735b7af7f9d9f479e1ed9))
* **api:** OpenAPI spec update via Stainless API ([#59](https://github.com/prompt-foundry/python-sdk/issues/59)) ([0eb8082](https://github.com/prompt-foundry/python-sdk/commit/0eb80823ac2357d035514caf0801cc39b415c36d))
* **api:** OpenAPI spec update via Stainless API ([#60](https://github.com/prompt-foundry/python-sdk/issues/60)) ([16d556e](https://github.com/prompt-foundry/python-sdk/commit/16d556eb15620f760d9a26a789eca3180019289d))
* **api:** OpenAPI spec update via Stainless API ([#61](https://github.com/prompt-foundry/python-sdk/issues/61)) ([054bfe4](https://github.com/prompt-foundry/python-sdk/commit/054bfe4b8ec078735f8a912264bf80ccaa94edab))
* **api:** OpenAPI spec update via Stainless API ([#62](https://github.com/prompt-foundry/python-sdk/issues/62)) ([9e7efc7](https://github.com/prompt-foundry/python-sdk/commit/9e7efc7cdf6fdecfcdb3f7e5212010b2816e6abc))
* **api:** OpenAPI spec update via Stainless API ([#63](https://github.com/prompt-foundry/python-sdk/issues/63)) ([8d222e1](https://github.com/prompt-foundry/python-sdk/commit/8d222e1223d4d5c9116588fbdd9119b3221b39b4))
* **api:** OpenAPI spec update via Stainless API ([#64](https://github.com/prompt-foundry/python-sdk/issues/64)) ([c179b76](https://github.com/prompt-foundry/python-sdk/commit/c179b767eed6fe320eb8b3424154e8e41a768388))
* **api:** OpenAPI spec update via Stainless API ([#67](https://github.com/prompt-foundry/python-sdk/issues/67)) ([7bfbc54](https://github.com/prompt-foundry/python-sdk/commit/7bfbc54632cec1db3dd990b4b10b930533902496))
* **api:** OpenAPI spec update via Stainless API ([#68](https://github.com/prompt-foundry/python-sdk/issues/68)) ([e582b76](https://github.com/prompt-foundry/python-sdk/commit/e582b76d645268288d5f2aa5bcca143f8daa7cf3))
* **api:** update via SDK Studio ([#65](https://github.com/prompt-foundry/python-sdk/issues/65)) ([b147b0a](https://github.com/prompt-foundry/python-sdk/commit/b147b0a4e626adf77413b33cecd5e180f1131e06))
* **api:** update via SDK Studio ([#66](https://github.com/prompt-foundry/python-sdk/issues/66)) ([9214424](https://github.com/prompt-foundry/python-sdk/commit/92144245e6bcb91ed2b08859195150c40a389a4d))

## 0.1.0-alpha.3 (2024-06-24)

Full Changelog: [v0.1.0-alpha.2...v0.1.0-alpha.3](https://github.com/prompt-foundry/python-sdk/compare/v0.1.0-alpha.2...v0.1.0-alpha.3)
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "prompt_foundry_python_sdk"
version = "0.1.0-alpha.3"
version = "0.1.0-alpha.4"
description = "The prompt engineering, prompt management, and prompt evaluation tool for Python "
keywords = ["llm evaluation", "prompt management", "prompt testing", "prompt engineering"]
dynamic = ["readme"]
Expand Down
2 changes: 1 addition & 1 deletion src/prompt_foundry_python_sdk/_version.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

__title__ = "prompt_foundry_python_sdk"
__version__ = "0.1.0-alpha.3" # x-release-please-version
__version__ = "0.1.0-alpha.4" # x-release-please-version
12 changes: 6 additions & 6 deletions src/prompt_foundry_python_sdk/resources/evaluations.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ def update(
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
) -> Evaluation:
"""
Update a evaluation by ID.
Update an evaluation by ID.

Args:
appended_messages: The messages to append to the completion messages when running the evaluation.
Expand Down Expand Up @@ -163,7 +163,7 @@ def delete(
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
) -> EvaluationDeleteResponse:
"""
Delete a evaluation by ID.
Delete an evaluation by ID.

Args:
extra_headers: Send extra headers
Expand Down Expand Up @@ -196,7 +196,7 @@ def get(
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
) -> Evaluation:
"""
Retrieve a evaluation by ID
Retrieve an evaluation by ID

Args:
extra_headers: Send extra headers
Expand Down Expand Up @@ -287,7 +287,7 @@ async def update(
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
) -> Evaluation:
"""
Update a evaluation by ID.
Update an evaluation by ID.

Args:
appended_messages: The messages to append to the completion messages when running the evaluation.
Expand Down Expand Up @@ -351,7 +351,7 @@ async def delete(
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
) -> EvaluationDeleteResponse:
"""
Delete a evaluation by ID.
Delete an evaluation by ID.

Args:
extra_headers: Send extra headers
Expand Down Expand Up @@ -384,7 +384,7 @@ async def get(
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
) -> Evaluation:
"""
Retrieve a evaluation by ID
Retrieve an evaluation by ID

Args:
extra_headers: Send extra headers
Expand Down
2 changes: 2 additions & 0 deletions src/prompt_foundry_python_sdk/types/prompt_configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ class Parameters(BaseModel):
api_model_name: str = FieldInfo(alias="modelName")
"""Example: "gpt-3.5-turbo" """

parallel_tool_calls: bool = FieldInfo(alias="parallelToolCalls")

presence_penalty: float = FieldInfo(alias="presencePenalty")
"""Example: 0"""

Expand Down
2 changes: 2 additions & 0 deletions src/prompt_foundry_python_sdk/types/prompt_create_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@ class Parameters(TypedDict, total=False):
model_name: Required[Annotated[str, PropertyInfo(alias="modelName")]]
"""Example: "gpt-3.5-turbo" """

parallel_tool_calls: Required[Annotated[bool, PropertyInfo(alias="parallelToolCalls")]]

presence_penalty: Required[Annotated[float, PropertyInfo(alias="presencePenalty")]]
"""Example: 0"""

Expand Down
2 changes: 2 additions & 0 deletions src/prompt_foundry_python_sdk/types/prompt_update_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@ class Parameters(TypedDict, total=False):
model_name: Required[Annotated[str, PropertyInfo(alias="modelName")]]
"""Example: "gpt-3.5-turbo" """

parallel_tool_calls: Required[Annotated[bool, PropertyInfo(alias="parallelToolCalls")]]

presence_penalty: Required[Annotated[float, PropertyInfo(alias="presencePenalty")]]
"""Example: 0"""

Expand Down
14 changes: 14 additions & 0 deletions tests/api_resources/test_prompts.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ def test_method_create(self, client: PromptFoundry) -> None:
"seed": 0,
"tool_choice": "string",
"stream": True,
"parallel_tool_calls": True,
},
tools=[{"tool_id": "string"}, {"tool_id": "string"}, {"tool_id": "string"}],
)
Expand Down Expand Up @@ -247,6 +248,7 @@ def test_raw_response_create(self, client: PromptFoundry) -> None:
"seed": 0,
"tool_choice": "string",
"stream": True,
"parallel_tool_calls": True,
},
tools=[{"tool_id": "string"}, {"tool_id": "string"}, {"tool_id": "string"}],
)
Expand Down Expand Up @@ -366,6 +368,7 @@ def test_streaming_response_create(self, client: PromptFoundry) -> None:
"seed": 0,
"tool_choice": "string",
"stream": True,
"parallel_tool_calls": True,
},
tools=[{"tool_id": "string"}, {"tool_id": "string"}, {"tool_id": "string"}],
) as response:
Expand Down Expand Up @@ -488,6 +491,7 @@ def test_method_update(self, client: PromptFoundry) -> None:
"seed": 0,
"tool_choice": "string",
"stream": True,
"parallel_tool_calls": True,
},
tools=[{"tool_id": "string"}, {"tool_id": "string"}, {"tool_id": "string"}],
)
Expand Down Expand Up @@ -604,6 +608,7 @@ def test_raw_response_update(self, client: PromptFoundry) -> None:
"seed": 0,
"tool_choice": "string",
"stream": True,
"parallel_tool_calls": True,
},
tools=[{"tool_id": "string"}, {"tool_id": "string"}, {"tool_id": "string"}],
)
Expand Down Expand Up @@ -724,6 +729,7 @@ def test_streaming_response_update(self, client: PromptFoundry) -> None:
"seed": 0,
"tool_choice": "string",
"stream": True,
"parallel_tool_calls": True,
},
tools=[{"tool_id": "string"}, {"tool_id": "string"}, {"tool_id": "string"}],
) as response:
Expand Down Expand Up @@ -847,6 +853,7 @@ def test_path_params_update(self, client: PromptFoundry) -> None:
"seed": 0,
"tool_choice": "string",
"stream": True,
"parallel_tool_calls": True,
},
tools=[{"tool_id": "string"}, {"tool_id": "string"}, {"tool_id": "string"}],
)
Expand Down Expand Up @@ -1303,6 +1310,7 @@ async def test_method_create(self, async_client: AsyncPromptFoundry) -> None:
"seed": 0,
"tool_choice": "string",
"stream": True,
"parallel_tool_calls": True,
},
tools=[{"tool_id": "string"}, {"tool_id": "string"}, {"tool_id": "string"}],
)
Expand Down Expand Up @@ -1418,6 +1426,7 @@ async def test_raw_response_create(self, async_client: AsyncPromptFoundry) -> No
"seed": 0,
"tool_choice": "string",
"stream": True,
"parallel_tool_calls": True,
},
tools=[{"tool_id": "string"}, {"tool_id": "string"}, {"tool_id": "string"}],
)
Expand Down Expand Up @@ -1537,6 +1546,7 @@ async def test_streaming_response_create(self, async_client: AsyncPromptFoundry)
"seed": 0,
"tool_choice": "string",
"stream": True,
"parallel_tool_calls": True,
},
tools=[{"tool_id": "string"}, {"tool_id": "string"}, {"tool_id": "string"}],
) as response:
Expand Down Expand Up @@ -1659,6 +1669,7 @@ async def test_method_update(self, async_client: AsyncPromptFoundry) -> None:
"seed": 0,
"tool_choice": "string",
"stream": True,
"parallel_tool_calls": True,
},
tools=[{"tool_id": "string"}, {"tool_id": "string"}, {"tool_id": "string"}],
)
Expand Down Expand Up @@ -1775,6 +1786,7 @@ async def test_raw_response_update(self, async_client: AsyncPromptFoundry) -> No
"seed": 0,
"tool_choice": "string",
"stream": True,
"parallel_tool_calls": True,
},
tools=[{"tool_id": "string"}, {"tool_id": "string"}, {"tool_id": "string"}],
)
Expand Down Expand Up @@ -1895,6 +1907,7 @@ async def test_streaming_response_update(self, async_client: AsyncPromptFoundry)
"seed": 0,
"tool_choice": "string",
"stream": True,
"parallel_tool_calls": True,
},
tools=[{"tool_id": "string"}, {"tool_id": "string"}, {"tool_id": "string"}],
) as response:
Expand Down Expand Up @@ -2018,6 +2031,7 @@ async def test_path_params_update(self, async_client: AsyncPromptFoundry) -> Non
"seed": 0,
"tool_choice": "string",
"stream": True,
"parallel_tool_calls": True,
},
tools=[{"tool_id": "string"}, {"tool_id": "string"}, {"tool_id": "string"}],
)
Expand Down