Skip to content

Commit 50424c6

Browse files
feat(api): OpenAPI spec update via Stainless API (#76)
1 parent 8422649 commit 50424c6

File tree

6 files changed

+22
-22
lines changed

6 files changed

+22
-22
lines changed

.stats.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
configured_endpoints: 21
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/prompt-foundry%2Fprompt-foundry-sdk-972b22a25d0d8bc0d4434735eb429ca11023968e7f14a1a39d48a1949386aa3b.yml
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/prompt-foundry%2Fprompt-foundry-sdk-cda2d45e20e1f02206e927055340f82767dae13b0fd16849300b7b1252246e90.yml

src/prompt_foundry_python_sdk/resources/evaluations.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def create(
4444
*,
4545
appended_messages: Iterable[evaluation_create_params.AppendedMessage],
4646
prompt_id: str,
47-
variables: Dict[str, Optional[object]],
47+
variables: Dict[str, Optional[str]],
4848
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
4949
# The extra values given here take precedence over values defined on the client or passed to this method.
5050
extra_headers: Headers | None = None,
@@ -90,7 +90,7 @@ def update(
9090
*,
9191
appended_messages: Iterable[evaluation_update_params.AppendedMessage],
9292
prompt_id: str,
93-
variables: Dict[str, Optional[object]],
93+
variables: Dict[str, Optional[str]],
9494
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
9595
# The extra values given here take precedence over values defined on the client or passed to this method.
9696
extra_headers: Headers | None = None,
@@ -232,7 +232,7 @@ async def create(
232232
*,
233233
appended_messages: Iterable[evaluation_create_params.AppendedMessage],
234234
prompt_id: str,
235-
variables: Dict[str, Optional[object]],
235+
variables: Dict[str, Optional[str]],
236236
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
237237
# The extra values given here take precedence over values defined on the client or passed to this method.
238238
extra_headers: Headers | None = None,
@@ -278,7 +278,7 @@ async def update(
278278
*,
279279
appended_messages: Iterable[evaluation_update_params.AppendedMessage],
280280
prompt_id: str,
281-
variables: Dict[str, Optional[object]],
281+
variables: Dict[str, Optional[str]],
282282
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
283283
# The extra values given here take precedence over values defined on the client or passed to this method.
284284
extra_headers: Headers | None = None,

src/prompt_foundry_python_sdk/types/evaluation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,5 +52,5 @@ class Evaluation(BaseModel):
5252

5353
prompt_id: str = FieldInfo(alias="promptId")
5454

55-
variables: Dict[str, Optional[object]]
55+
variables: Dict[str, Optional[str]]
5656
"""The variables to in the prompt when evaluating the prompt."""

src/prompt_foundry_python_sdk/types/evaluation_create_params.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class EvaluationCreateParams(TypedDict, total=False):
1616

1717
prompt_id: Required[Annotated[str, PropertyInfo(alias="promptId")]]
1818

19-
variables: Required[Dict[str, Optional[object]]]
19+
variables: Required[Dict[str, Optional[str]]]
2020
"""The variables to in the prompt when evaluating the prompt."""
2121

2222

src/prompt_foundry_python_sdk/types/evaluation_update_params.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class EvaluationUpdateParams(TypedDict, total=False):
1616

1717
prompt_id: Required[Annotated[str, PropertyInfo(alias="promptId")]]
1818

19-
variables: Required[Dict[str, Optional[object]]]
19+
variables: Required[Dict[str, Optional[str]]]
2020
"""The variables to in the prompt when evaluating the prompt."""
2121

2222

tests/api_resources/test_evaluations.py

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ def test_method_create(self, client: PromptFoundry) -> None:
120120
},
121121
],
122122
prompt_id="string",
123-
variables={"foo": {}},
123+
variables={"foo": "string"},
124124
)
125125
assert_matches_type(Evaluation, evaluation, path=["response"])
126126

@@ -223,7 +223,7 @@ def test_raw_response_create(self, client: PromptFoundry) -> None:
223223
},
224224
],
225225
prompt_id="string",
226-
variables={"foo": {}},
226+
variables={"foo": "string"},
227227
)
228228

229229
assert response.is_closed is True
@@ -330,7 +330,7 @@ def test_streaming_response_create(self, client: PromptFoundry) -> None:
330330
},
331331
],
332332
prompt_id="string",
333-
variables={"foo": {}},
333+
variables={"foo": "string"},
334334
) as response:
335335
assert not response.is_closed
336336
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -440,7 +440,7 @@ def test_method_update(self, client: PromptFoundry) -> None:
440440
},
441441
],
442442
prompt_id="string",
443-
variables={"foo": {}},
443+
variables={"foo": "string"},
444444
)
445445
assert_matches_type(Evaluation, evaluation, path=["response"])
446446

@@ -544,7 +544,7 @@ def test_raw_response_update(self, client: PromptFoundry) -> None:
544544
},
545545
],
546546
prompt_id="string",
547-
variables={"foo": {}},
547+
variables={"foo": "string"},
548548
)
549549

550550
assert response.is_closed is True
@@ -652,7 +652,7 @@ def test_streaming_response_update(self, client: PromptFoundry) -> None:
652652
},
653653
],
654654
prompt_id="string",
655-
variables={"foo": {}},
655+
variables={"foo": "string"},
656656
) as response:
657657
assert not response.is_closed
658658
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -763,7 +763,7 @@ def test_path_params_update(self, client: PromptFoundry) -> None:
763763
},
764764
],
765765
prompt_id="string",
766-
variables={"foo": {}},
766+
variables={"foo": "string"},
767767
)
768768

769769
@parametrize
@@ -970,7 +970,7 @@ async def test_method_create(self, async_client: AsyncPromptFoundry) -> None:
970970
},
971971
],
972972
prompt_id="string",
973-
variables={"foo": {}},
973+
variables={"foo": "string"},
974974
)
975975
assert_matches_type(Evaluation, evaluation, path=["response"])
976976

@@ -1073,7 +1073,7 @@ async def test_raw_response_create(self, async_client: AsyncPromptFoundry) -> No
10731073
},
10741074
],
10751075
prompt_id="string",
1076-
variables={"foo": {}},
1076+
variables={"foo": "string"},
10771077
)
10781078

10791079
assert response.is_closed is True
@@ -1180,7 +1180,7 @@ async def test_streaming_response_create(self, async_client: AsyncPromptFoundry)
11801180
},
11811181
],
11821182
prompt_id="string",
1183-
variables={"foo": {}},
1183+
variables={"foo": "string"},
11841184
) as response:
11851185
assert not response.is_closed
11861186
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -1290,7 +1290,7 @@ async def test_method_update(self, async_client: AsyncPromptFoundry) -> None:
12901290
},
12911291
],
12921292
prompt_id="string",
1293-
variables={"foo": {}},
1293+
variables={"foo": "string"},
12941294
)
12951295
assert_matches_type(Evaluation, evaluation, path=["response"])
12961296

@@ -1394,7 +1394,7 @@ async def test_raw_response_update(self, async_client: AsyncPromptFoundry) -> No
13941394
},
13951395
],
13961396
prompt_id="string",
1397-
variables={"foo": {}},
1397+
variables={"foo": "string"},
13981398
)
13991399

14001400
assert response.is_closed is True
@@ -1502,7 +1502,7 @@ async def test_streaming_response_update(self, async_client: AsyncPromptFoundry)
15021502
},
15031503
],
15041504
prompt_id="string",
1505-
variables={"foo": {}},
1505+
variables={"foo": "string"},
15061506
) as response:
15071507
assert not response.is_closed
15081508
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -1613,7 +1613,7 @@ async def test_path_params_update(self, async_client: AsyncPromptFoundry) -> Non
16131613
},
16141614
],
16151615
prompt_id="string",
1616-
variables={"foo": {}},
1616+
variables={"foo": "string"},
16171617
)
16181618

16191619
@parametrize

0 commit comments

Comments
 (0)