Skip to content

Commit be0cd3c

Browse files
authored
Merge pull request #14 from Not-Diamond/release-please--branches--main--changes--next
release: 1.0.0-rc8
2 parents 4a7838f + ffcb06f commit be0cd3c

29 files changed

Lines changed: 894 additions & 1062 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-
".": "1.0.0-rc7"
2+
".": "1.0.0-rc8"
33
}

.stats.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 11
22
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/not-diamond-dragos199993%2Fnot-diamond-d0e585fcdd0fd3fcf7cbb2c9d1c3ff83a76bab32603ebdc1163463b8ba317fdd.yml
33
openapi_spec_hash: c82cee5716c9cbf7988eac472030bce3
4-
config_hash: dbc156c33fbbdb5e9ccda24709b359e0
4+
config_hash: 9a9a890a20877064001bf49a2fe9b8d2

CHANGELOG.md

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

3+
## 1.0.0-rc8 (2025-11-10)
4+
5+
Full Changelog: [v1.0.0-rc7...v1.0.0-rc8](https://github.com/Not-Diamond/not-diamond-python/compare/v1.0.0-rc7...v1.0.0-rc8)
6+
7+
### Features
8+
9+
* **api:** manual updates ([1d846ce](https://github.com/Not-Diamond/not-diamond-python/commit/1d846ce29e4e8688e82bd64d500d3752af77d6de))
10+
311
## 1.0.0-rc7 (2025-11-07)
412

513
Full Changelog: [v1.0.0-rc6...v1.0.0-rc7](https://github.com/Not-Diamond/not-diamond-python/compare/v1.0.0-rc6...v1.0.0-rc7)

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ from not_diamond import NotDiamond
327327

328328
client = NotDiamond()
329329

330-
client.pzn.train_custom_router(
330+
client.custom_router.train_custom_router(
331331
dataset_file=Path("/path/to/file"),
332332
language="english",
333333
llm_providers='[{"provider": "openai", "model": "gpt-4o"}, {"provider": "anthropic", "model": "claude-sonnet-4-5-20250929"}]',

api.md

Lines changed: 13 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -43,43 +43,35 @@ Methods:
4343
Types:
4444

4545
```python
46-
from not_diamond.types import JobStatus, PromptGetAdaptResultsResponse, PromptGetAdaptStatusResponse
47-
```
48-
49-
Methods:
50-
51-
- <code title="get /v2/prompt/adaptResults/{adaptation_run_id}">client.prompt.<a href="./src/not_diamond/resources/prompt/prompt.py">get_adapt_results</a>(adaptation_run_id) -> <a href="./src/not_diamond/types/prompt_get_adapt_results_response.py">PromptGetAdaptResultsResponse</a></code>
52-
- <code title="get /v2/prompt/adaptStatus/{adaptation_run_id}">client.prompt.<a href="./src/not_diamond/resources/prompt/prompt.py">get_adapt_status</a>(adaptation_run_id) -> <a href="./src/not_diamond/types/prompt_get_adapt_status_response.py">PromptGetAdaptStatusResponse</a></code>
53-
54-
## Adapt
55-
56-
Types:
57-
58-
```python
59-
from not_diamond.types.prompt import (
46+
from not_diamond.types import (
6047
GoldenRecord,
48+
JobStatus,
6149
RequestProvider,
62-
AdaptCreateResponse,
63-
AdaptGetCostsResponse,
50+
PromptCreateResponse,
51+
PromptGetAdaptResultsResponse,
52+
PromptGetAdaptStatusResponse,
53+
PromptGetCostsResponse,
6454
)
6555
```
6656

6757
Methods:
6858

69-
- <code title="post /v2/prompt/adapt">client.prompt.adapt.<a href="./src/not_diamond/resources/prompt/adapt.py">create</a>(\*\*<a href="src/not_diamond/types/prompt/adapt_create_params.py">params</a>) -> <a href="./src/not_diamond/types/prompt/adapt_create_response.py">AdaptCreateResponse</a></code>
70-
- <code title="get /v2/prompt/adapt/{adaptation_run_id}/costs">client.prompt.adapt.<a href="./src/not_diamond/resources/prompt/adapt.py">get_costs</a>(adaptation_run_id) -> <a href="./src/not_diamond/types/prompt/adapt_get_costs_response.py">AdaptGetCostsResponse</a></code>
59+
- <code title="post /v2/prompt/adapt">client.prompt.<a href="./src/not_diamond/resources/prompt.py">create</a>(\*\*<a href="src/not_diamond/types/prompt_create_params.py">params</a>) -> <a href="./src/not_diamond/types/prompt_create_response.py">PromptCreateResponse</a></code>
60+
- <code title="get /v2/prompt/adaptResults/{adaptation_run_id}">client.prompt.<a href="./src/not_diamond/resources/prompt.py">get_adapt_results</a>(adaptation_run_id) -> <a href="./src/not_diamond/types/prompt_get_adapt_results_response.py">PromptGetAdaptResultsResponse</a></code>
61+
- <code title="get /v2/prompt/adaptStatus/{adaptation_run_id}">client.prompt.<a href="./src/not_diamond/resources/prompt.py">get_adapt_status</a>(adaptation_run_id) -> <a href="./src/not_diamond/types/prompt_get_adapt_status_response.py">PromptGetAdaptStatusResponse</a></code>
62+
- <code title="get /v2/prompt/adapt/{adaptation_run_id}/costs">client.prompt.<a href="./src/not_diamond/resources/prompt.py">get_costs</a>(adaptation_run_id) -> <a href="./src/not_diamond/types/prompt_get_costs_response.py">PromptGetCostsResponse</a></code>
7163

72-
# Pzn
64+
# CustomRouter
7365

7466
Types:
7567

7668
```python
77-
from not_diamond.types import PznTrainCustomRouterResponse
69+
from not_diamond.types import CustomRouterTrainCustomRouterResponse
7870
```
7971

8072
Methods:
8173

82-
- <code title="post /v2/pzn/trainCustomRouter">client.pzn.<a href="./src/not_diamond/resources/pzn.py">train_custom_router</a>(\*\*<a href="src/not_diamond/types/pzn_train_custom_router_params.py">params</a>) -> <a href="./src/not_diamond/types/pzn_train_custom_router_response.py">PznTrainCustomRouterResponse</a></code>
74+
- <code title="post /v2/pzn/trainCustomRouter">client.custom_router.<a href="./src/not_diamond/resources/custom_router.py">train_custom_router</a>(\*\*<a href="src/not_diamond/types/custom_router_train_custom_router_params.py">params</a>) -> <a href="./src/not_diamond/types/custom_router_train_custom_router_response.py">CustomRouterTrainCustomRouterResponse</a></code>
8375

8476
# Models
8577

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "notdiamond"
3-
version = "1.0.0-rc7"
3+
version = "1.0.0-rc8"
44
description = "The official Python library for the not-diamond API"
55
dynamic = ["readme"]
66
license = "Apache-2.0"

src/not_diamond/_client.py

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,14 @@
2121
)
2222
from ._utils import is_given, get_async_library
2323
from ._version import __version__
24-
from .resources import pzn, models, preferences, model_router
24+
from .resources import models, prompt, preferences, model_router, custom_router
2525
from ._streaming import Stream as Stream, AsyncStream as AsyncStream
2626
from ._exceptions import APIStatusError, NotDiamondError
2727
from ._base_client import (
2828
DEFAULT_MAX_RETRIES,
2929
SyncAPIClient,
3030
AsyncAPIClient,
3131
)
32-
from .resources.prompt import prompt
3332
from .resources.report import report
3433

3534
__all__ = [
@@ -49,7 +48,7 @@ class NotDiamond(SyncAPIClient):
4948
report: report.ReportResource
5049
preferences: preferences.PreferencesResource
5150
prompt: prompt.PromptResource
52-
pzn: pzn.PznResource
51+
custom_router: custom_router.CustomRouterResource
5352
models: models.ModelsResource
5453
with_raw_response: NotDiamondWithRawResponse
5554
with_streaming_response: NotDiamondWithStreamedResponse
@@ -112,7 +111,7 @@ def __init__(
112111
self.report = report.ReportResource(self)
113112
self.preferences = preferences.PreferencesResource(self)
114113
self.prompt = prompt.PromptResource(self)
115-
self.pzn = pzn.PznResource(self)
114+
self.custom_router = custom_router.CustomRouterResource(self)
116115
self.models = models.ModelsResource(self)
117116
self.with_raw_response = NotDiamondWithRawResponse(self)
118117
self.with_streaming_response = NotDiamondWithStreamedResponse(self)
@@ -227,7 +226,7 @@ class AsyncNotDiamond(AsyncAPIClient):
227226
report: report.AsyncReportResource
228227
preferences: preferences.AsyncPreferencesResource
229228
prompt: prompt.AsyncPromptResource
230-
pzn: pzn.AsyncPznResource
229+
custom_router: custom_router.AsyncCustomRouterResource
231230
models: models.AsyncModelsResource
232231
with_raw_response: AsyncNotDiamondWithRawResponse
233232
with_streaming_response: AsyncNotDiamondWithStreamedResponse
@@ -290,7 +289,7 @@ def __init__(
290289
self.report = report.AsyncReportResource(self)
291290
self.preferences = preferences.AsyncPreferencesResource(self)
292291
self.prompt = prompt.AsyncPromptResource(self)
293-
self.pzn = pzn.AsyncPznResource(self)
292+
self.custom_router = custom_router.AsyncCustomRouterResource(self)
294293
self.models = models.AsyncModelsResource(self)
295294
self.with_raw_response = AsyncNotDiamondWithRawResponse(self)
296295
self.with_streaming_response = AsyncNotDiamondWithStreamedResponse(self)
@@ -406,7 +405,7 @@ def __init__(self, client: NotDiamond) -> None:
406405
self.report = report.ReportResourceWithRawResponse(client.report)
407406
self.preferences = preferences.PreferencesResourceWithRawResponse(client.preferences)
408407
self.prompt = prompt.PromptResourceWithRawResponse(client.prompt)
409-
self.pzn = pzn.PznResourceWithRawResponse(client.pzn)
408+
self.custom_router = custom_router.CustomRouterResourceWithRawResponse(client.custom_router)
410409
self.models = models.ModelsResourceWithRawResponse(client.models)
411410

412411

@@ -416,7 +415,7 @@ def __init__(self, client: AsyncNotDiamond) -> None:
416415
self.report = report.AsyncReportResourceWithRawResponse(client.report)
417416
self.preferences = preferences.AsyncPreferencesResourceWithRawResponse(client.preferences)
418417
self.prompt = prompt.AsyncPromptResourceWithRawResponse(client.prompt)
419-
self.pzn = pzn.AsyncPznResourceWithRawResponse(client.pzn)
418+
self.custom_router = custom_router.AsyncCustomRouterResourceWithRawResponse(client.custom_router)
420419
self.models = models.AsyncModelsResourceWithRawResponse(client.models)
421420

422421

@@ -426,7 +425,7 @@ def __init__(self, client: NotDiamond) -> None:
426425
self.report = report.ReportResourceWithStreamingResponse(client.report)
427426
self.preferences = preferences.PreferencesResourceWithStreamingResponse(client.preferences)
428427
self.prompt = prompt.PromptResourceWithStreamingResponse(client.prompt)
429-
self.pzn = pzn.PznResourceWithStreamingResponse(client.pzn)
428+
self.custom_router = custom_router.CustomRouterResourceWithStreamingResponse(client.custom_router)
430429
self.models = models.ModelsResourceWithStreamingResponse(client.models)
431430

432431

@@ -436,7 +435,7 @@ def __init__(self, client: AsyncNotDiamond) -> None:
436435
self.report = report.AsyncReportResourceWithStreamingResponse(client.report)
437436
self.preferences = preferences.AsyncPreferencesResourceWithStreamingResponse(client.preferences)
438437
self.prompt = prompt.AsyncPromptResourceWithStreamingResponse(client.prompt)
439-
self.pzn = pzn.AsyncPznResourceWithStreamingResponse(client.pzn)
438+
self.custom_router = custom_router.AsyncCustomRouterResourceWithStreamingResponse(client.custom_router)
440439
self.models = models.AsyncModelsResourceWithStreamingResponse(client.models)
441440

442441

src/not_diamond/_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__ = "not_diamond"
4-
__version__ = "1.0.0-rc7" # x-release-please-version
4+
__version__ = "1.0.0-rc8" # x-release-please-version

src/not_diamond/resources/__init__.py

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,5 @@
11
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

3-
from .pzn import (
4-
PznResource,
5-
AsyncPznResource,
6-
PznResourceWithRawResponse,
7-
AsyncPznResourceWithRawResponse,
8-
PznResourceWithStreamingResponse,
9-
AsyncPznResourceWithStreamingResponse,
10-
)
113
from .models import (
124
ModelsResource,
135
AsyncModelsResource,
@@ -48,6 +40,14 @@
4840
ModelRouterResourceWithStreamingResponse,
4941
AsyncModelRouterResourceWithStreamingResponse,
5042
)
43+
from .custom_router import (
44+
CustomRouterResource,
45+
AsyncCustomRouterResource,
46+
CustomRouterResourceWithRawResponse,
47+
AsyncCustomRouterResourceWithRawResponse,
48+
CustomRouterResourceWithStreamingResponse,
49+
AsyncCustomRouterResourceWithStreamingResponse,
50+
)
5151

5252
__all__ = [
5353
"ModelRouterResource",
@@ -74,12 +74,12 @@
7474
"AsyncPromptResourceWithRawResponse",
7575
"PromptResourceWithStreamingResponse",
7676
"AsyncPromptResourceWithStreamingResponse",
77-
"PznResource",
78-
"AsyncPznResource",
79-
"PznResourceWithRawResponse",
80-
"AsyncPznResourceWithRawResponse",
81-
"PznResourceWithStreamingResponse",
82-
"AsyncPznResourceWithStreamingResponse",
77+
"CustomRouterResource",
78+
"AsyncCustomRouterResource",
79+
"CustomRouterResourceWithRawResponse",
80+
"AsyncCustomRouterResourceWithRawResponse",
81+
"CustomRouterResourceWithStreamingResponse",
82+
"AsyncCustomRouterResourceWithStreamingResponse",
8383
"ModelsResource",
8484
"AsyncModelsResource",
8585
"ModelsResourceWithRawResponse",

0 commit comments

Comments
 (0)