Skip to content

Commit 074eea2

Browse files
stainless-app[bot]windsornguyenTsion Kergo
authored
release: 0.1.0-alpha.6 (#6)
* feat(api): api update * feat(model): add DedalusModel * feat(api): api update * feat(api): api update * Sdk runner (#7) * add runner to python sdk * chore(license): update LICENSE * refactor(runner): restructure to lib/runner w/ clean types * feat(runner): accept messages list * refactor: standardize logging, moved to_schema * chore(runner): update type hints * feat(utils): added stream utils * chore(utils): reorg some utils files --------- Co-authored-by: Tsion Kergo <tsionkergo@Mac.attlocal.net> * release: 0.1.0-alpha.6 --------- Co-authored-by: stainless-app[bot] <142633134+stainless-app[bot]@users.noreply.github.com> Co-authored-by: Windsor Nguyễn <win@dedaluslabs.ai> Co-authored-by: Tsion Kergo <tsionkergo@Mac.attlocal.net>
1 parent 67403ba commit 074eea2

32 files changed

Lines changed: 1488 additions & 138 deletions

.release-please-manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
".": "0.1.0-alpha.5"
2+
".": "0.1.0-alpha.6"
33
}

.stats.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 5
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/dedalus-labs--inc-dash%2Fdedalus-sdk-107fbf0e4f3e883dc0579bbb799a9547c65afb64371e2c5b66593d40e3518877.yml
3-
openapi_spec_hash: 8cb05628b456941a4ab8a7e45660b14f
4-
config_hash: f5175e3e1cf0a120b4ef858099d07bc1
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/dedalus-labs--inc-dash%2Fdedalus-sdk-df6bb68fd14c842e82ed9d18bf982d9d26c1bdd75b775b0e3be30782d662adca.yml
3+
openapi_spec_hash: 7ce7ba663d8791cd20f612012189400b
4+
config_hash: 61c6abc17e1cdc831e11a0a40628f1b6

CHANGELOG.md

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

3+
## 0.1.0-alpha.6 (2025-08-21)
4+
5+
Full Changelog: [v0.1.0-alpha.5...v0.1.0-alpha.6](https://github.com/dedalus-labs/dedalus-sdk-python/compare/v0.1.0-alpha.5...v0.1.0-alpha.6)
6+
7+
### Features
8+
9+
* **api:** api update ([283500e](https://github.com/dedalus-labs/dedalus-sdk-python/commit/283500e638288e248715ac84092727884b0d404d))
10+
* **api:** api update ([769f6d2](https://github.com/dedalus-labs/dedalus-sdk-python/commit/769f6d24cf4458795a2d6a4a1ce5487e24d3b34b))
11+
* **api:** api update ([e8cce59](https://github.com/dedalus-labs/dedalus-sdk-python/commit/e8cce59df56ade2c3be785a4ab68be694b36b325))
12+
* **model:** add DedalusModel ([0bdc7ce](https://github.com/dedalus-labs/dedalus-sdk-python/commit/0bdc7ce32b8c0099d74fbd71afb6c20efc5c2618))
13+
314
## 0.1.0-alpha.5 (2025-08-18)
415

516
Full Changelog: [v0.1.0-alpha.4...v0.1.0-alpha.5](https://github.com/dedalus-labs/dedalus-sdk-python/compare/v0.1.0-alpha.4...v0.1.0-alpha.5)

LICENSE

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,21 @@
1-
Copyright 2025 Dedalus
1+
MIT License
22

3-
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
3+
Copyright (c) 2025 Dedalus Labs, Inc. and affiliates
44

5-
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
611

7-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ stream_chunk = client.chat.completions.create(
3838
messages=[
3939
{
4040
"role": "user",
41-
"content": "Hello, how are you today?",
41+
"content": "Hello, how can you help me today?",
4242
}
4343
],
4444
model="openai/gpt-5",
@@ -72,7 +72,7 @@ async def main() -> None:
7272
messages=[
7373
{
7474
"role": "user",
75-
"content": "Hello, how are you today?",
75+
"content": "Hello, how can you help me today?",
7676
}
7777
],
7878
model="openai/gpt-5",
@@ -113,7 +113,7 @@ async def main() -> None:
113113
messages=[
114114
{
115115
"role": "user",
116-
"content": "Hello, how are you today?",
116+
"content": "Hello, how can you help me today?",
117117
}
118118
],
119119
model="openai/gpt-5",

api.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,12 @@ Methods:
2727
Types:
2828

2929
```python
30-
from dedalus_labs.types import Model, ModelsResponse
30+
from dedalus_labs.types import DedalusModel, Model, ModelsResponse
3131
```
3232

3333
Methods:
3434

35-
- <code title="get /v1/models/{model_id}">client.models.<a href="./src/dedalus_labs/resources/models.py">retrieve</a>(model_id) -> <a href="./src/dedalus_labs/types/model.py">Model</a></code>
35+
- <code title="get /v1/models/{model_id}">client.models.<a href="./src/dedalus_labs/resources/models.py">retrieve</a>(model_id) -> <a href="./src/dedalus_labs/types/dedalus_model.py">DedalusModel</a></code>
3636
- <code title="get /v1/models">client.models.<a href="./src/dedalus_labs/resources/models.py">list</a>() -> <a href="./src/dedalus_labs/types/models_response.py">ModelsResponse</a></code>
3737

3838
# Chat
@@ -46,6 +46,9 @@ from dedalus_labs.types.chat import (
4646
ChatCompletionTokenLogprob,
4747
Completion,
4848
CompletionRequest,
49+
DedalusModelChoice,
50+
ModelID,
51+
Models,
4952
StreamChunk,
5053
TopLogprob,
5154
)

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "dedalus_labs"
3-
version = "0.1.0-alpha.5"
3+
version = "0.1.0-alpha.6"
44
description = "The official Python library for the Dedalus API"
55
dynamic = ["readme"]
66
license = "MIT"

src/dedalus_labs/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,11 @@
3636
PermissionDeniedError,
3737
UnprocessableEntityError,
3838
APIResponseValidationError,
39+
SchemaProcessingError,
3940
)
4041
from ._base_client import DefaultHttpxClient, DefaultAioHttpClient, DefaultAsyncHttpxClient
4142
from ._utils._logs import setup_logging as _setup_logging
43+
from .lib.runner import DedalusRunner
4244

4345
__all__ = [
4446
"types",
@@ -81,6 +83,8 @@
8183
"DefaultHttpxClient",
8284
"DefaultAsyncHttpxClient",
8385
"DefaultAioHttpClient",
86+
"DedalusRunner",
87+
"SchemaProcessingError",
8488
]
8589

8690
if not _t.TYPE_CHECKING:

src/dedalus_labs/_exceptions.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,20 @@
1515
"UnprocessableEntityError",
1616
"RateLimitError",
1717
"InternalServerError",
18+
"SchemaProcessingError",
1819
]
1920

2021

2122
class DedalusError(Exception):
2223
pass
2324

2425

26+
class SchemaProcessingError(DedalusError):
27+
"""Base exception for schema processing errors during parsing or analysis."""
28+
29+
pass
30+
31+
2532
class APIError(DedalusError):
2633
message: str
2734
request: httpx.Request

src/dedalus_labs/_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__ = "dedalus_labs"
4-
__version__ = "0.1.0-alpha.5" # x-release-please-version
4+
__version__ = "0.1.0-alpha.6" # x-release-please-version

0 commit comments

Comments
 (0)