Skip to content

Commit 3f8b4e5

Browse files
authored
Merge pull request #33 from digitalocean/release-please--branches--main--changes--next
release: 3.0.0-beta.4
2 parents f40ef8c + 286011c commit 3f8b4e5

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+1686
-1676
lines changed

.release-please-manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
".": "3.0.0-beta.3"
2+
".": "3.0.0-beta.4"
33
}

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
# Changelog
22

3+
## 3.0.0-beta.4 (2025-08-12)
4+
5+
Full Changelog: [v3.0.0-beta.3...v3.0.0-beta.4](https://github.com/digitalocean/gradient-python/compare/v3.0.0-beta.3...v3.0.0-beta.4)
6+
7+
### Chores
8+
9+
* **internal:** codegen related update ([4757cc5](https://github.com/digitalocean/gradient-python/commit/4757cc594565cf8500b4087205e6eb5fd8c5d5c5))
10+
* **internal:** update comment in script ([c324412](https://github.com/digitalocean/gradient-python/commit/c32441201c3156cc4fe5b400a4f396eaf19ecaad))
11+
* update @stainless-api/prism-cli to v5.15.0 ([835aa7c](https://github.com/digitalocean/gradient-python/commit/835aa7c204f5def64cdcd8b863581fd6a1ea37b6))
12+
313
## 3.0.0-beta.3 (2025-08-08)
414

515
Full Changelog: [v3.0.0-beta.2...v3.0.0-beta.3](https://github.com/digitalocean/gradient-python/compare/v3.0.0-beta.2...v3.0.0-beta.3)

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "gradient"
3-
version = "3.0.0-beta.3"
3+
version = "3.0.0-beta.4"
44
description = "The official Python library for the Gradient API"
55
dynamic = ["readme"]
66
license = "Apache-2.0"

scripts/mock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ echo "==> Starting mock server with URL ${URL}"
2121

2222
# Run prism mock on the given spec
2323
if [ "$1" == "--daemon" ]; then
24-
npm exec --package=@stainless-api/prism-cli@5.8.5 -- prism mock "$URL" &> .prism.log &
24+
npm exec --package=@stainless-api/prism-cli@5.15.0 -- prism mock "$URL" &> .prism.log &
2525

2626
# Wait for server to come online
2727
echo -n "Waiting for server"
@@ -37,5 +37,5 @@ if [ "$1" == "--daemon" ]; then
3737

3838
echo
3939
else
40-
npm exec --package=@stainless-api/prism-cli@5.8.5 -- prism mock "$URL"
40+
npm exec --package=@stainless-api/prism-cli@5.15.0 -- prism mock "$URL"
4141
fi

scripts/test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ elif ! prism_is_running ; then
4343
echo -e "To run the server, pass in the path or url of your OpenAPI"
4444
echo -e "spec to the prism command:"
4545
echo
46-
echo -e " \$ ${YELLOW}npm exec --package=@stoplight/prism-cli@~5.3.2 -- prism mock path/to/your.openapi.yml${NC}"
46+
echo -e " \$ ${YELLOW}npm exec --package=@stainless-api/prism-cli@5.15.0 -- prism mock path/to/your.openapi.yml${NC}"
4747
echo
4848

4949
exit 1

src/gradient/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

33
__title__ = "gradient"
4-
__version__ = "3.0.0-beta.3" # x-release-please-version
4+
__version__ = "3.0.0-beta.4" # x-release-please-version

tests/api_resources/agents/chat/test_completions.py

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
class TestCompletions:
1818
parametrize = pytest.mark.parametrize("client", [False, True], indirect=True, ids=["loose", "strict"])
1919

20-
@pytest.mark.skip()
20+
@pytest.mark.skip(reason="Prism tests are disabled")
2121
@parametrize
2222
def test_method_create_overload_1(self, client: Gradient) -> None:
2323
completion = client.agents.chat.completions.create(
@@ -31,7 +31,7 @@ def test_method_create_overload_1(self, client: Gradient) -> None:
3131
)
3232
assert_matches_type(CompletionCreateResponse, completion, path=["response"])
3333

34-
@pytest.mark.skip()
34+
@pytest.mark.skip(reason="Prism tests are disabled")
3535
@parametrize
3636
def test_method_create_with_all_params_overload_1(self, client: Gradient) -> None:
3737
completion = client.agents.chat.completions.create(
@@ -71,7 +71,7 @@ def test_method_create_with_all_params_overload_1(self, client: Gradient) -> Non
7171
)
7272
assert_matches_type(CompletionCreateResponse, completion, path=["response"])
7373

74-
@pytest.mark.skip()
74+
@pytest.mark.skip(reason="Prism tests are disabled")
7575
@parametrize
7676
def test_raw_response_create_overload_1(self, client: Gradient) -> None:
7777
response = client.agents.chat.completions.with_raw_response.create(
@@ -89,7 +89,7 @@ def test_raw_response_create_overload_1(self, client: Gradient) -> None:
8989
completion = response.parse()
9090
assert_matches_type(CompletionCreateResponse, completion, path=["response"])
9191

92-
@pytest.mark.skip()
92+
@pytest.mark.skip(reason="Prism tests are disabled")
9393
@parametrize
9494
def test_streaming_response_create_overload_1(self, client: Gradient) -> None:
9595
with client.agents.chat.completions.with_streaming_response.create(
@@ -109,7 +109,7 @@ def test_streaming_response_create_overload_1(self, client: Gradient) -> None:
109109

110110
assert cast(Any, response.is_closed) is True
111111

112-
@pytest.mark.skip()
112+
@pytest.mark.skip(reason="Prism tests are disabled")
113113
@parametrize
114114
def test_method_create_overload_2(self, client: Gradient) -> None:
115115
completion_stream = client.agents.chat.completions.create(
@@ -124,7 +124,7 @@ def test_method_create_overload_2(self, client: Gradient) -> None:
124124
)
125125
completion_stream.response.close()
126126

127-
@pytest.mark.skip()
127+
@pytest.mark.skip(reason="Prism tests are disabled")
128128
@parametrize
129129
def test_method_create_with_all_params_overload_2(self, client: Gradient) -> None:
130130
completion_stream = client.agents.chat.completions.create(
@@ -164,7 +164,7 @@ def test_method_create_with_all_params_overload_2(self, client: Gradient) -> Non
164164
)
165165
completion_stream.response.close()
166166

167-
@pytest.mark.skip()
167+
@pytest.mark.skip(reason="Prism tests are disabled")
168168
@parametrize
169169
def test_raw_response_create_overload_2(self, client: Gradient) -> None:
170170
response = client.agents.chat.completions.with_raw_response.create(
@@ -182,7 +182,7 @@ def test_raw_response_create_overload_2(self, client: Gradient) -> None:
182182
stream = response.parse()
183183
stream.close()
184184

185-
@pytest.mark.skip()
185+
@pytest.mark.skip(reason="Prism tests are disabled")
186186
@parametrize
187187
def test_streaming_response_create_overload_2(self, client: Gradient) -> None:
188188
with client.agents.chat.completions.with_streaming_response.create(
@@ -212,7 +212,7 @@ class TestAsyncCompletions:
212212
ids=["loose", "strict", "aiohttp"],
213213
)
214214

215-
@pytest.mark.skip()
215+
@pytest.mark.skip(reason="Prism tests are disabled")
216216
@parametrize
217217
async def test_method_create_overload_1(self, async_client: AsyncGradient) -> None:
218218
completion = await async_client.agents.chat.completions.create(
@@ -226,7 +226,7 @@ async def test_method_create_overload_1(self, async_client: AsyncGradient) -> No
226226
)
227227
assert_matches_type(CompletionCreateResponse, completion, path=["response"])
228228

229-
@pytest.mark.skip()
229+
@pytest.mark.skip(reason="Prism tests are disabled")
230230
@parametrize
231231
async def test_method_create_with_all_params_overload_1(self, async_client: AsyncGradient) -> None:
232232
completion = await async_client.agents.chat.completions.create(
@@ -266,7 +266,7 @@ async def test_method_create_with_all_params_overload_1(self, async_client: Asyn
266266
)
267267
assert_matches_type(CompletionCreateResponse, completion, path=["response"])
268268

269-
@pytest.mark.skip()
269+
@pytest.mark.skip(reason="Prism tests are disabled")
270270
@parametrize
271271
async def test_raw_response_create_overload_1(self, async_client: AsyncGradient) -> None:
272272
response = await async_client.agents.chat.completions.with_raw_response.create(
@@ -284,7 +284,7 @@ async def test_raw_response_create_overload_1(self, async_client: AsyncGradient)
284284
completion = await response.parse()
285285
assert_matches_type(CompletionCreateResponse, completion, path=["response"])
286286

287-
@pytest.mark.skip()
287+
@pytest.mark.skip(reason="Prism tests are disabled")
288288
@parametrize
289289
async def test_streaming_response_create_overload_1(self, async_client: AsyncGradient) -> None:
290290
async with async_client.agents.chat.completions.with_streaming_response.create(
@@ -304,7 +304,7 @@ async def test_streaming_response_create_overload_1(self, async_client: AsyncGra
304304

305305
assert cast(Any, response.is_closed) is True
306306

307-
@pytest.mark.skip()
307+
@pytest.mark.skip(reason="Prism tests are disabled")
308308
@parametrize
309309
async def test_method_create_overload_2(self, async_client: AsyncGradient) -> None:
310310
completion_stream = await async_client.agents.chat.completions.create(
@@ -319,7 +319,7 @@ async def test_method_create_overload_2(self, async_client: AsyncGradient) -> No
319319
)
320320
await completion_stream.response.aclose()
321321

322-
@pytest.mark.skip()
322+
@pytest.mark.skip(reason="Prism tests are disabled")
323323
@parametrize
324324
async def test_method_create_with_all_params_overload_2(self, async_client: AsyncGradient) -> None:
325325
completion_stream = await async_client.agents.chat.completions.create(
@@ -359,7 +359,7 @@ async def test_method_create_with_all_params_overload_2(self, async_client: Asyn
359359
)
360360
await completion_stream.response.aclose()
361361

362-
@pytest.mark.skip()
362+
@pytest.mark.skip(reason="Prism tests are disabled")
363363
@parametrize
364364
async def test_raw_response_create_overload_2(self, async_client: AsyncGradient) -> None:
365365
response = await async_client.agents.chat.completions.with_raw_response.create(
@@ -377,7 +377,7 @@ async def test_raw_response_create_overload_2(self, async_client: AsyncGradient)
377377
stream = await response.parse()
378378
await stream.close()
379379

380-
@pytest.mark.skip()
380+
@pytest.mark.skip(reason="Prism tests are disabled")
381381
@parametrize
382382
async def test_streaming_response_create_overload_2(self, async_client: AsyncGradient) -> None:
383383
async with async_client.agents.chat.completions.with_streaming_response.create(

0 commit comments

Comments
 (0)