Skip to content
Open
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
8 changes: 6 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,14 +55,18 @@ jobs:
run: uv build

- name: Get GitHub OIDC Token
if: github.repository == 'stainless-sdks/dedalus-sdk-python'
if: |-
github.repository == 'stainless-sdks/dedalus-sdk-python' &&
!startsWith(github.ref, 'refs/heads/stl/')
id: github-oidc
uses: actions/github-script@v8
with:
script: core.setOutput('github_token', await core.getIDToken());

- name: Upload tarball
if: github.repository == 'stainless-sdks/dedalus-sdk-python'
if: |-
github.repository == 'stainless-sdks/dedalus-sdk-python' &&
!startsWith(github.ref, 'refs/heads/stl/')
env:
URL: https://pkg.stainless.com/s
AUTH: ${{ steps.github-oidc.outputs.github_token }}
Expand Down
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.3.0"
".": "0.3.1"
}
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@
# Changelog

## 0.3.1 (2026-03-07)

Full Changelog: [v0.3.0...v0.3.1](https://github.com/dedalus-labs/dedalus-sdk-python/compare/v0.3.0...v0.3.1)

### Chores

* **ci:** skip uploading artifacts on stainless-internal branches ([e3ed836](https://github.com/dedalus-labs/dedalus-sdk-python/commit/e3ed83614aa445a6af6d48fbab67edd96d651123))
* update placeholder string ([3a623d4](https://github.com/dedalus-labs/dedalus-sdk-python/commit/3a623d4779430378efe9ceb6540ba6fddbc70041))


### Refactors

* **types:** use `extra_items` from PEP 728 ([de6e4e4](https://github.com/dedalus-labs/dedalus-sdk-python/commit/de6e4e466ad9e9f40be8d8d4f7ea6208c076267e))

## 0.3.0 (2026-02-28)

Full Changelog: [v0.2.0...v0.3.0](https://github.com/dedalus-labs/dedalus-sdk-python/compare/v0.2.0...v0.3.0)
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 = "dedalus_labs"
version = "0.3.0"
version = "0.3.1"
description = "The official Python library for the Dedalus API"
dynamic = ["readme"]
license = "MIT"
Expand Down
2 changes: 1 addition & 1 deletion src/dedalus_labs/_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__ = "dedalus_labs"
__version__ = "0.3.0" # x-release-please-version
__version__ = "0.3.1" # x-release-please-version
9 changes: 3 additions & 6 deletions src/dedalus_labs/types/shared_params/reasoning.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@

from __future__ import annotations

from typing import Dict, Union, Optional
from typing_extensions import Literal, TypeAlias, TypedDict
from typing import Optional
from typing_extensions import Literal, TypedDict

__all__ = ["Reasoning"]


class ReasoningTyped(TypedDict, total=False):
class Reasoning(TypedDict, total=False, extra_items=object): # type: ignore[call-arg]
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minimum typing-extensions version too low for extra_items

High Severity

The extra_items=object class parameter on TypedDict (PEP 728) was only added to typing_extensions in version 4.13.0 (March 2025). However, pyproject.toml declares typing-extensions>=4.10, <5. Users who install typing_extensions 4.10–4.12 will get a TypeError at import time because older TypedDict does not accept the extra_items keyword argument. The dev lockfile pins 4.15.0, masking this in CI.

Additional Locations (1)

Fix in Cursor Fix in Web

"""**gpt-5 and o-series models only**

Configuration options for
Expand All @@ -20,6 +20,3 @@ class ReasoningTyped(TypedDict, total=False):
generate_summary: Optional[Literal["auto", "concise", "detailed"]]

summary: Optional[Literal["auto", "concise", "detailed"]]


Reasoning: TypeAlias = Union[ReasoningTyped, Dict[str, object]]
16 changes: 8 additions & 8 deletions tests/api_resources/audio/test_transcriptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class TestTranscriptions:
@parametrize
def test_method_create(self, client: Dedalus) -> None:
transcription = client.audio.transcriptions.create(
file=b"raw file contents",
file=b"Example data",
model="model",
)
assert_matches_type(TranscriptionCreateResponse, transcription, path=["response"])
Expand All @@ -30,7 +30,7 @@ def test_method_create(self, client: Dedalus) -> None:
@parametrize
def test_method_create_with_all_params(self, client: Dedalus) -> None:
transcription = client.audio.transcriptions.create(
file=b"raw file contents",
file=b"Example data",
model="model",
language="language",
prompt="prompt",
Expand All @@ -43,7 +43,7 @@ def test_method_create_with_all_params(self, client: Dedalus) -> None:
@parametrize
def test_raw_response_create(self, client: Dedalus) -> None:
response = client.audio.transcriptions.with_raw_response.create(
file=b"raw file contents",
file=b"Example data",
model="model",
)

Expand All @@ -56,7 +56,7 @@ def test_raw_response_create(self, client: Dedalus) -> None:
@parametrize
def test_streaming_response_create(self, client: Dedalus) -> None:
with client.audio.transcriptions.with_streaming_response.create(
file=b"raw file contents",
file=b"Example data",
model="model",
) as response:
assert not response.is_closed
Expand All @@ -77,7 +77,7 @@ class TestAsyncTranscriptions:
@parametrize
async def test_method_create(self, async_client: AsyncDedalus) -> None:
transcription = await async_client.audio.transcriptions.create(
file=b"raw file contents",
file=b"Example data",
model="model",
)
assert_matches_type(TranscriptionCreateResponse, transcription, path=["response"])
Expand All @@ -86,7 +86,7 @@ async def test_method_create(self, async_client: AsyncDedalus) -> None:
@parametrize
async def test_method_create_with_all_params(self, async_client: AsyncDedalus) -> None:
transcription = await async_client.audio.transcriptions.create(
file=b"raw file contents",
file=b"Example data",
model="model",
language="language",
prompt="prompt",
Expand All @@ -99,7 +99,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncDedalus) -
@parametrize
async def test_raw_response_create(self, async_client: AsyncDedalus) -> None:
response = await async_client.audio.transcriptions.with_raw_response.create(
file=b"raw file contents",
file=b"Example data",
model="model",
)

Expand All @@ -112,7 +112,7 @@ async def test_raw_response_create(self, async_client: AsyncDedalus) -> None:
@parametrize
async def test_streaming_response_create(self, async_client: AsyncDedalus) -> None:
async with async_client.audio.transcriptions.with_streaming_response.create(
file=b"raw file contents",
file=b"Example data",
model="model",
) as response:
assert not response.is_closed
Expand Down
16 changes: 8 additions & 8 deletions tests/api_resources/audio/test_translations.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class TestTranslations:
@parametrize
def test_method_create(self, client: Dedalus) -> None:
translation = client.audio.translations.create(
file=b"raw file contents",
file=b"Example data",
model="model",
)
assert_matches_type(TranslationCreateResponse, translation, path=["response"])
Expand All @@ -30,7 +30,7 @@ def test_method_create(self, client: Dedalus) -> None:
@parametrize
def test_method_create_with_all_params(self, client: Dedalus) -> None:
translation = client.audio.translations.create(
file=b"raw file contents",
file=b"Example data",
model="model",
prompt="prompt",
response_format="response_format",
Expand All @@ -42,7 +42,7 @@ def test_method_create_with_all_params(self, client: Dedalus) -> None:
@parametrize
def test_raw_response_create(self, client: Dedalus) -> None:
response = client.audio.translations.with_raw_response.create(
file=b"raw file contents",
file=b"Example data",
model="model",
)

Expand All @@ -55,7 +55,7 @@ def test_raw_response_create(self, client: Dedalus) -> None:
@parametrize
def test_streaming_response_create(self, client: Dedalus) -> None:
with client.audio.translations.with_streaming_response.create(
file=b"raw file contents",
file=b"Example data",
model="model",
) as response:
assert not response.is_closed
Expand All @@ -76,7 +76,7 @@ class TestAsyncTranslations:
@parametrize
async def test_method_create(self, async_client: AsyncDedalus) -> None:
translation = await async_client.audio.translations.create(
file=b"raw file contents",
file=b"Example data",
model="model",
)
assert_matches_type(TranslationCreateResponse, translation, path=["response"])
Expand All @@ -85,7 +85,7 @@ async def test_method_create(self, async_client: AsyncDedalus) -> None:
@parametrize
async def test_method_create_with_all_params(self, async_client: AsyncDedalus) -> None:
translation = await async_client.audio.translations.create(
file=b"raw file contents",
file=b"Example data",
model="model",
prompt="prompt",
response_format="response_format",
Expand All @@ -97,7 +97,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncDedalus) -
@parametrize
async def test_raw_response_create(self, async_client: AsyncDedalus) -> None:
response = await async_client.audio.translations.with_raw_response.create(
file=b"raw file contents",
file=b"Example data",
model="model",
)

Expand All @@ -110,7 +110,7 @@ async def test_raw_response_create(self, async_client: AsyncDedalus) -> None:
@parametrize
async def test_streaming_response_create(self, async_client: AsyncDedalus) -> None:
async with async_client.audio.translations.with_streaming_response.create(
file=b"raw file contents",
file=b"Example data",
model="model",
) as response:
assert not response.is_closed
Expand Down
36 changes: 18 additions & 18 deletions tests/api_resources/test_images.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,15 @@ class TestImages:
@parametrize
def test_method_create_variation(self, client: Dedalus) -> None:
image = client.images.create_variation(
image=b"raw file contents",
image=b"Example data",
)
assert_matches_type(ImagesResponse, image, path=["response"])

@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
def test_method_create_variation_with_all_params(self, client: Dedalus) -> None:
image = client.images.create_variation(
image=b"raw file contents",
image=b"Example data",
model="model",
n=0,
response_format="response_format",
Expand All @@ -42,7 +42,7 @@ def test_method_create_variation_with_all_params(self, client: Dedalus) -> None:
@parametrize
def test_raw_response_create_variation(self, client: Dedalus) -> None:
response = client.images.with_raw_response.create_variation(
image=b"raw file contents",
image=b"Example data",
)

assert response.is_closed is True
Expand All @@ -54,7 +54,7 @@ def test_raw_response_create_variation(self, client: Dedalus) -> None:
@parametrize
def test_streaming_response_create_variation(self, client: Dedalus) -> None:
with client.images.with_streaming_response.create_variation(
image=b"raw file contents",
image=b"Example data",
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
Expand All @@ -68,7 +68,7 @@ def test_streaming_response_create_variation(self, client: Dedalus) -> None:
@parametrize
def test_method_edit(self, client: Dedalus) -> None:
image = client.images.edit(
image=b"raw file contents",
image=b"Example data",
prompt="prompt",
)
assert_matches_type(ImagesResponse, image, path=["response"])
Expand All @@ -77,9 +77,9 @@ def test_method_edit(self, client: Dedalus) -> None:
@parametrize
def test_method_edit_with_all_params(self, client: Dedalus) -> None:
image = client.images.edit(
image=b"raw file contents",
image=b"Example data",
prompt="prompt",
mask=b"raw file contents",
mask=b"Example data",
model="model",
n=0,
response_format="response_format",
Expand All @@ -92,7 +92,7 @@ def test_method_edit_with_all_params(self, client: Dedalus) -> None:
@parametrize
def test_raw_response_edit(self, client: Dedalus) -> None:
response = client.images.with_raw_response.edit(
image=b"raw file contents",
image=b"Example data",
prompt="prompt",
)

Expand All @@ -105,7 +105,7 @@ def test_raw_response_edit(self, client: Dedalus) -> None:
@parametrize
def test_streaming_response_edit(self, client: Dedalus) -> None:
with client.images.with_streaming_response.edit(
image=b"raw file contents",
image=b"Example data",
prompt="prompt",
) as response:
assert not response.is_closed
Expand Down Expand Up @@ -181,15 +181,15 @@ class TestAsyncImages:
@parametrize
async def test_method_create_variation(self, async_client: AsyncDedalus) -> None:
image = await async_client.images.create_variation(
image=b"raw file contents",
image=b"Example data",
)
assert_matches_type(ImagesResponse, image, path=["response"])

@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
async def test_method_create_variation_with_all_params(self, async_client: AsyncDedalus) -> None:
image = await async_client.images.create_variation(
image=b"raw file contents",
image=b"Example data",
model="model",
n=0,
response_format="response_format",
Expand All @@ -202,7 +202,7 @@ async def test_method_create_variation_with_all_params(self, async_client: Async
@parametrize
async def test_raw_response_create_variation(self, async_client: AsyncDedalus) -> None:
response = await async_client.images.with_raw_response.create_variation(
image=b"raw file contents",
image=b"Example data",
)

assert response.is_closed is True
Expand All @@ -214,7 +214,7 @@ async def test_raw_response_create_variation(self, async_client: AsyncDedalus) -
@parametrize
async def test_streaming_response_create_variation(self, async_client: AsyncDedalus) -> None:
async with async_client.images.with_streaming_response.create_variation(
image=b"raw file contents",
image=b"Example data",
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
Expand All @@ -228,7 +228,7 @@ async def test_streaming_response_create_variation(self, async_client: AsyncDeda
@parametrize
async def test_method_edit(self, async_client: AsyncDedalus) -> None:
image = await async_client.images.edit(
image=b"raw file contents",
image=b"Example data",
prompt="prompt",
)
assert_matches_type(ImagesResponse, image, path=["response"])
Expand All @@ -237,9 +237,9 @@ async def test_method_edit(self, async_client: AsyncDedalus) -> None:
@parametrize
async def test_method_edit_with_all_params(self, async_client: AsyncDedalus) -> None:
image = await async_client.images.edit(
image=b"raw file contents",
image=b"Example data",
prompt="prompt",
mask=b"raw file contents",
mask=b"Example data",
model="model",
n=0,
response_format="response_format",
Expand All @@ -252,7 +252,7 @@ async def test_method_edit_with_all_params(self, async_client: AsyncDedalus) ->
@parametrize
async def test_raw_response_edit(self, async_client: AsyncDedalus) -> None:
response = await async_client.images.with_raw_response.edit(
image=b"raw file contents",
image=b"Example data",
prompt="prompt",
)

Expand All @@ -265,7 +265,7 @@ async def test_raw_response_edit(self, async_client: AsyncDedalus) -> None:
@parametrize
async def test_streaming_response_edit(self, async_client: AsyncDedalus) -> None:
async with async_client.images.with_streaming_response.edit(
image=b"raw file contents",
image=b"Example data",
prompt="prompt",
) as response:
assert not response.is_closed
Expand Down
Loading