Skip to content

release: 0.1.0-alpha.1 #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 32 commits into from
Jun 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
9da1c61
feat(api): update via SDK Studio (#2)
stainless-app[bot] Jun 13, 2024
60871a6
feat(api): update via SDK Studio (#3)
stainless-app[bot] Jun 13, 2024
6256780
feat(api): OpenAPI spec update via Stainless API (#4)
stainless-app[bot] Jun 13, 2024
24d0f5f
feat(api): OpenAPI spec update via Stainless API (#5)
stainless-app[bot] Jun 13, 2024
061f5e1
feat(api): OpenAPI spec update via Stainless API (#6)
stainless-app[bot] Jun 13, 2024
a911601
feat(api): update via SDK Studio (#7)
stainless-app[bot] Jun 13, 2024
0985a84
feat(api): OpenAPI spec update via Stainless API (#8)
stainless-app[bot] Jun 14, 2024
563825c
feat(api): OpenAPI spec update via Stainless API (#9)
stainless-app[bot] Jun 14, 2024
f9c65fa
feat(api): OpenAPI spec update via Stainless API (#10)
stainless-app[bot] Jun 14, 2024
76b88cd
feat(api): OpenAPI spec update via Stainless API (#11)
stainless-app[bot] Jun 14, 2024
b5eb5a7
feat(api): OpenAPI spec update via Stainless API (#12)
stainless-app[bot] Jun 14, 2024
b5f146d
feat(api): OpenAPI spec update via Stainless API (#13)
stainless-app[bot] Jun 14, 2024
1cd8fba
feat(api): OpenAPI spec update via Stainless API (#14)
stainless-app[bot] Jun 14, 2024
1008c46
feat(api): update via SDK Studio (#15)
stainless-app[bot] Jun 14, 2024
370d129
feat(api): OpenAPI spec update via Stainless API (#16)
stainless-app[bot] Jun 14, 2024
3ac016e
feat(api): OpenAPI spec update via Stainless API (#17)
stainless-app[bot] Jun 14, 2024
84b41a0
feat(api): OpenAPI spec update via Stainless API (#18)
stainless-app[bot] Jun 14, 2024
de8c9ff
feat(api): OpenAPI spec update via Stainless API (#19)
stainless-app[bot] Jun 14, 2024
d5a7b26
feat(api): OpenAPI spec update via Stainless API (#20)
stainless-app[bot] Jun 14, 2024
240e244
feat(api): OpenAPI spec update via Stainless API (#21)
stainless-app[bot] Jun 15, 2024
a945064
feat(api): OpenAPI spec update via Stainless API (#22)
stainless-app[bot] Jun 15, 2024
bfa0ee8
feat(api): OpenAPI spec update via Stainless API (#23)
stainless-app[bot] Jun 15, 2024
13f3593
feat(api): OpenAPI spec update via Stainless API (#24)
stainless-app[bot] Jun 15, 2024
6960e9c
feat(api): OpenAPI spec update via Stainless API (#25)
stainless-app[bot] Jun 15, 2024
c825ab9
feat(api): OpenAPI spec update via Stainless API (#26)
stainless-app[bot] Jun 15, 2024
7183919
feat(api): OpenAPI spec update via Stainless API (#27)
stainless-app[bot] Jun 15, 2024
0299edd
feat(api): OpenAPI spec update via Stainless API (#28)
stainless-app[bot] Jun 15, 2024
7498b9c
feat(api): OpenAPI spec update via Stainless API (#29)
stainless-app[bot] Jun 16, 2024
67a768a
feat(api): OpenAPI spec update via Stainless API (#30)
stainless-app[bot] Jun 16, 2024
77a89fd
feat(api): OpenAPI spec update via Stainless API (#31)
stainless-app[bot] Jun 17, 2024
63aad0c
feat(api): OpenAPI spec update via Stainless API (#32)
stainless-app[bot] Jun 18, 2024
ae6e2a5
release: 0.1.0-alpha.1
stainless-app[bot] Jun 18, 2024
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
38 changes: 0 additions & 38 deletions .github/workflows/create-releases.yml

This file was deleted.

25 changes: 0 additions & 25 deletions .github/workflows/handle-release-pr-title-edit.yml

This file was deleted.

8 changes: 6 additions & 2 deletions .github/workflows/publish-pypi.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
# workflow for re-running publishing to PyPI in case it fails for some reason
# you can run this workflow by navigating to https://www.github.com/prompt-foundry/python-sdk/actions/workflows/publish-pypi.yml
# This workflow is triggered when a GitHub release is created.
# It can also be run manually to re-publish to PyPI in case it failed for some reason.
# You can run this workflow by navigating to https://www.github.com/prompt-foundry/python-sdk/actions/workflows/publish-pypi.yml
name: Publish PyPI
on:
workflow_dispatch:

release:
types: [published]

jobs:
publish:
name: publish
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/release-doctor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,4 @@ jobs:
run: |
bash ./bin/check-release-environment
env:
STAINLESS_API_KEY: ${{ secrets.STAINLESS_API_KEY }}
PYPI_TOKEN: ${{ secrets.PROMPT_FOUNDRY_PYPI_TOKEN || secrets.PYPI_TOKEN }}
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.0.1-alpha.0"
".": "0.1.0-alpha.1"
}
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-b8126e888081f9b8e261a52a8a95ec441666f752df583f08d14a212c27de37eb.yml
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/prompt-foundry%2Fprompt-foundry-sdk-bb0c2179ddf83834412606080e40f875436162cb81210f5af52c5f14aeb9c35b.yml
58 changes: 58 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
# Changelog

## 0.1.0-alpha.1 (2024-06-18)

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

### Features

* **api:** OpenAPI spec update via Stainless API ([8695b71](https://github.com/prompt-foundry/python-sdk/commit/8695b7181062bd6e48897bb7c7f6d9bbb93286a0))
* **api:** OpenAPI spec update via Stainless API ([ff9b980](https://github.com/prompt-foundry/python-sdk/commit/ff9b980b95dceec2325f4f50f1b2a0d8769ec51b))
* **api:** OpenAPI spec update via Stainless API ([ce085a8](https://github.com/prompt-foundry/python-sdk/commit/ce085a867e6307dc7106b3de63eba91c9c8b9277))
* **api:** OpenAPI spec update via Stainless API ([9ac4485](https://github.com/prompt-foundry/python-sdk/commit/9ac44855306becba975d40518d02e40ecabb49e8))
* **api:** OpenAPI spec update via Stainless API ([16e2946](https://github.com/prompt-foundry/python-sdk/commit/16e2946426d64b4c018aa4dd6d4d9bec05520ef5))
* **api:** OpenAPI spec update via Stainless API ([02adac7](https://github.com/prompt-foundry/python-sdk/commit/02adac791b4bbd912639522ffdca7e6082d117e3))
* **api:** OpenAPI spec update via Stainless API ([22694f7](https://github.com/prompt-foundry/python-sdk/commit/22694f7627acc37acd06e15b097e604094f280c5))
* **api:** OpenAPI spec update via Stainless API ([df9cbd9](https://github.com/prompt-foundry/python-sdk/commit/df9cbd969a2721f53ecbe46e8d6b2108d9c73a97))
* **api:** OpenAPI spec update via Stainless API ([#10](https://github.com/prompt-foundry/python-sdk/issues/10)) ([f9c65fa](https://github.com/prompt-foundry/python-sdk/commit/f9c65fa303482aec5cc0cff00243a8ea555e05d0))
* **api:** OpenAPI spec update via Stainless API ([#11](https://github.com/prompt-foundry/python-sdk/issues/11)) ([76b88cd](https://github.com/prompt-foundry/python-sdk/commit/76b88cddd6cb0afe7285eda22e183572e9276b6e))
* **api:** OpenAPI spec update via Stainless API ([#12](https://github.com/prompt-foundry/python-sdk/issues/12)) ([b5eb5a7](https://github.com/prompt-foundry/python-sdk/commit/b5eb5a7c6527fd848c03a3a4303462f575d38f15))
* **api:** OpenAPI spec update via Stainless API ([#13](https://github.com/prompt-foundry/python-sdk/issues/13)) ([b5f146d](https://github.com/prompt-foundry/python-sdk/commit/b5f146ddcf3b3be2d5432373792d00de2a6c46eb))
* **api:** OpenAPI spec update via Stainless API ([#14](https://github.com/prompt-foundry/python-sdk/issues/14)) ([1cd8fba](https://github.com/prompt-foundry/python-sdk/commit/1cd8fbabb302db8d09ac7f743175bf223f127081))
* **api:** OpenAPI spec update via Stainless API ([#16](https://github.com/prompt-foundry/python-sdk/issues/16)) ([370d129](https://github.com/prompt-foundry/python-sdk/commit/370d12921aa470eea742b344d15aec8fdd98a415))
* **api:** OpenAPI spec update via Stainless API ([#17](https://github.com/prompt-foundry/python-sdk/issues/17)) ([3ac016e](https://github.com/prompt-foundry/python-sdk/commit/3ac016eafa5a5245d233eeb04ffb94b3af422827))
* **api:** OpenAPI spec update via Stainless API ([#18](https://github.com/prompt-foundry/python-sdk/issues/18)) ([84b41a0](https://github.com/prompt-foundry/python-sdk/commit/84b41a0ec640ad3f85e5aba8f0f4b9dfc13b0ed8))
* **api:** OpenAPI spec update via Stainless API ([#19](https://github.com/prompt-foundry/python-sdk/issues/19)) ([de8c9ff](https://github.com/prompt-foundry/python-sdk/commit/de8c9ff3d6b60289b299b28792b6b78bf1c19f87))
* **api:** OpenAPI spec update via Stainless API ([#20](https://github.com/prompt-foundry/python-sdk/issues/20)) ([d5a7b26](https://github.com/prompt-foundry/python-sdk/commit/d5a7b260dc4c2f533b462ab17f4c442d2ab0ff5f))
* **api:** OpenAPI spec update via Stainless API ([#21](https://github.com/prompt-foundry/python-sdk/issues/21)) ([240e244](https://github.com/prompt-foundry/python-sdk/commit/240e244f9976b17ff8d2a227274c0cea7852eb57))
* **api:** OpenAPI spec update via Stainless API ([#22](https://github.com/prompt-foundry/python-sdk/issues/22)) ([a945064](https://github.com/prompt-foundry/python-sdk/commit/a945064bb58b7052d16c963ccb18ec9e6260a8fc))
* **api:** OpenAPI spec update via Stainless API ([#23](https://github.com/prompt-foundry/python-sdk/issues/23)) ([bfa0ee8](https://github.com/prompt-foundry/python-sdk/commit/bfa0ee8d58a100541bb38eab220fd40d01cb39ed))
* **api:** OpenAPI spec update via Stainless API ([#24](https://github.com/prompt-foundry/python-sdk/issues/24)) ([13f3593](https://github.com/prompt-foundry/python-sdk/commit/13f3593f2b1a49494a89a1365e67d9d32f23e38f))
* **api:** OpenAPI spec update via Stainless API ([#25](https://github.com/prompt-foundry/python-sdk/issues/25)) ([6960e9c](https://github.com/prompt-foundry/python-sdk/commit/6960e9cde2d3f1d669cf7c0194d1f6950ee04088))
* **api:** OpenAPI spec update via Stainless API ([#26](https://github.com/prompt-foundry/python-sdk/issues/26)) ([c825ab9](https://github.com/prompt-foundry/python-sdk/commit/c825ab9bd5fc11368524012d33db7c46ca76ef00))
* **api:** OpenAPI spec update via Stainless API ([#27](https://github.com/prompt-foundry/python-sdk/issues/27)) ([7183919](https://github.com/prompt-foundry/python-sdk/commit/7183919c1d42629a9c7641b4015da0ceb40df7cc))
* **api:** OpenAPI spec update via Stainless API ([#28](https://github.com/prompt-foundry/python-sdk/issues/28)) ([0299edd](https://github.com/prompt-foundry/python-sdk/commit/0299edd2f69c5024ea8f19ea9e4f12df63e57fa3))
* **api:** OpenAPI spec update via Stainless API ([#29](https://github.com/prompt-foundry/python-sdk/issues/29)) ([7498b9c](https://github.com/prompt-foundry/python-sdk/commit/7498b9c8487988e4bcd23becc3d68289e311d7ee))
* **api:** OpenAPI spec update via Stainless API ([#30](https://github.com/prompt-foundry/python-sdk/issues/30)) ([67a768a](https://github.com/prompt-foundry/python-sdk/commit/67a768a0249fe85f2fa14c7b5f814ad3545f723e))
* **api:** OpenAPI spec update via Stainless API ([#31](https://github.com/prompt-foundry/python-sdk/issues/31)) ([77a89fd](https://github.com/prompt-foundry/python-sdk/commit/77a89fd48d2a291fff9f58df4603ebffab4a3f93))
* **api:** OpenAPI spec update via Stainless API ([#32](https://github.com/prompt-foundry/python-sdk/issues/32)) ([63aad0c](https://github.com/prompt-foundry/python-sdk/commit/63aad0cba95d66515ee7378086ab15642604c2c3))
* **api:** OpenAPI spec update via Stainless API ([#4](https://github.com/prompt-foundry/python-sdk/issues/4)) ([6256780](https://github.com/prompt-foundry/python-sdk/commit/6256780fbbb625dbfbede474106cf08a1eec6be6))
* **api:** OpenAPI spec update via Stainless API ([#5](https://github.com/prompt-foundry/python-sdk/issues/5)) ([24d0f5f](https://github.com/prompt-foundry/python-sdk/commit/24d0f5f2208257c090d0d0b750864715b1d1a111))
* **api:** OpenAPI spec update via Stainless API ([#6](https://github.com/prompt-foundry/python-sdk/issues/6)) ([061f5e1](https://github.com/prompt-foundry/python-sdk/commit/061f5e128cfd05ef1dbba5fb1ec297317f4dd6fe))
* **api:** OpenAPI spec update via Stainless API ([#8](https://github.com/prompt-foundry/python-sdk/issues/8)) ([0985a84](https://github.com/prompt-foundry/python-sdk/commit/0985a84e9983982aa3bd6bdc4162eac84e794fdd))
* **api:** OpenAPI spec update via Stainless API ([#9](https://github.com/prompt-foundry/python-sdk/issues/9)) ([563825c](https://github.com/prompt-foundry/python-sdk/commit/563825c05c310664f4d1e31bdb42f720ef1f5e42))
* **api:** update via SDK Studio ([e6e949f](https://github.com/prompt-foundry/python-sdk/commit/e6e949f31cd9f46b69a6b0eecff77302e10a7526))
* **api:** update via SDK Studio ([81e9e2b](https://github.com/prompt-foundry/python-sdk/commit/81e9e2b4a358e8dfa9092943977e47434224c2d7))
* **api:** update via SDK Studio ([bf021f8](https://github.com/prompt-foundry/python-sdk/commit/bf021f8c0d52a1daa72a724855ae163f0a855d29))
* **api:** update via SDK Studio ([7e86858](https://github.com/prompt-foundry/python-sdk/commit/7e868589e08b4bf5a11713a43a2a5ce7f927e760))
* **api:** update via SDK Studio ([8763e6e](https://github.com/prompt-foundry/python-sdk/commit/8763e6e990c3fa21e67c78bd30e78a84d174de3f))
* **api:** update via SDK Studio ([5ca849a](https://github.com/prompt-foundry/python-sdk/commit/5ca849a7993863e78725679be6acd8c214587a8e))
* **api:** update via SDK Studio ([#15](https://github.com/prompt-foundry/python-sdk/issues/15)) ([1008c46](https://github.com/prompt-foundry/python-sdk/commit/1008c46ba47ffc0fd49e990ca11af22cd8e2c3f7))
* **api:** update via SDK Studio ([#2](https://github.com/prompt-foundry/python-sdk/issues/2)) ([9da1c61](https://github.com/prompt-foundry/python-sdk/commit/9da1c61d02239f1c851f2dcfd40f86f0b4ab92f2))
* **api:** update via SDK Studio ([#3](https://github.com/prompt-foundry/python-sdk/issues/3)) ([60871a6](https://github.com/prompt-foundry/python-sdk/commit/60871a6b43c5344390362d91d254d85d07f110d7))
* **api:** update via SDK Studio ([#7](https://github.com/prompt-foundry/python-sdk/issues/7)) ([a911601](https://github.com/prompt-foundry/python-sdk/commit/a911601326ff373a520a1a0c681995f9c68cb35a))


### Chores

* configure new SDK language ([447cb1d](https://github.com/prompt-foundry/python-sdk/commit/447cb1dbb0fde134d850a6a3dee1b206c90ae7f5))
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ client = PromptFoundry(

model_parameters = client.prompts.get_parameters(
"1212121",
variables={"hello": "world"},
)
print(model_parameters.parameters)
```
Expand Down Expand Up @@ -63,6 +64,7 @@ client = AsyncPromptFoundry(
async def main() -> None:
model_parameters = await client.prompts.get_parameters(
"1212121",
variables={"hello": "world"},
)
print(model_parameters.parameters)

Expand Down
4 changes: 0 additions & 4 deletions bin/check-release-environment
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,6 @@
warnings=()
errors=()

if [ -z "${STAINLESS_API_KEY}" ]; then
errors+=("The STAINLESS_API_KEY secret has not been set. Please contact Stainless for an API key & set it in your organization secrets on GitHub.")
fi

if [ -z "${PYPI_TOKEN}" ]; then
warnings+=("The PROMPT_FOUNDRY_PYPI_TOKEN secret has not been set. Please set it in either this repository's secrets or your organization secrets.")
fi
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.0.1-alpha.0"
version = "0.1.0-alpha.1"
description = "The official Python library for the prompt-foundry API"
dynamic = ["readme"]
license = "Apache-2.0"
Expand Down
8 changes: 7 additions & 1 deletion src/prompt_foundry_python_sdk/_base_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,7 @@ def _build_request(
raise RuntimeError(f"Unexpected JSON data type, {type(json_data)}, cannot merge with `extra_body`")

headers = self._build_headers(options)
params = _merge_mappings(self._custom_query, options.params)
params = _merge_mappings(self.default_query, options.params)
content_type = headers.get("Content-Type")

# If the given Content-Type header is multipart/form-data then it
Expand Down Expand Up @@ -592,6 +592,12 @@ def default_headers(self) -> dict[str, str | Omit]:
**self._custom_headers,
}

@property
def default_query(self) -> dict[str, object]:
return {
**self._custom_query,
}

def _validate_headers(
self,
headers: Headers, # noqa: ARG002
Expand Down
4 changes: 2 additions & 2 deletions src/prompt_foundry_python_sdk/_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ def __init__(
if base_url is None:
base_url = os.environ.get("PROMPT_FOUNDRY_BASE_URL")
if base_url is None:
base_url = f"https://api.promptfoundry.ai/sdk/v1"
base_url = f"https://api.promptfoundry.ai"

super().__init__(
version=__version__,
Expand Down Expand Up @@ -268,7 +268,7 @@ def __init__(
if base_url is None:
base_url = os.environ.get("PROMPT_FOUNDRY_BASE_URL")
if base_url is None:
base_url = f"https://api.promptfoundry.ai/sdk/v1"
base_url = f"https://api.promptfoundry.ai"

super().__init__(
version=__version__,
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.0.1-alpha.0" # x-release-please-version
__version__ = "0.1.0-alpha.1" # x-release-please-version
Loading