Skip to content

Commit 7a53baa

Browse files
committed
Release 0.8.0b6
1 parent e681969 commit 7a53baa

File tree

6 files changed

+10
-5
lines changed

6 files changed

+10
-5
lines changed

.mock/fern.config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
22
"organization" : "humanloop",
3-
"version" : "0.35.0"
3+
"version" : "0.37.6"
44
}

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ When the API returns a non-success status code (4xx or 5xx response), a subclass
108108
will be thrown.
109109

110110
```python
111-
from .api_error import ApiError
111+
from humanloop.core.api_error import ApiError
112112

113113
try:
114114
client.prompts.log(...)

reference.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4990,6 +4990,7 @@ client.evaluators.upsert(
49904990
spec={
49914991
"arguments_type": "target_required",
49924992
"return_type": "number",
4993+
"evaluator_type": "python",
49934994
"code": "def evaluate(answer, target):\\n return 0.5",
49944995
},
49954996
commit_message="Initial commit",

src/humanloop/evaluators/client.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,7 @@ def upsert(
181181
spec={
182182
"arguments_type": "target_required",
183183
"return_type": "number",
184+
"evaluator_type": "python",
184185
"code": "def evaluate(answer, target):\\n return 0.5",
185186
},
186187
commit_message="Initial commit",
@@ -975,6 +976,7 @@ async def main() -> None:
975976
spec={
976977
"arguments_type": "target_required",
977978
"return_type": "number",
979+
"evaluator_type": "python",
978980
"code": "def evaluate(answer, target):\\n return 0.5",
979981
},
980982
commit_message="Initial commit",

tests/test_evaluators.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ async def test_upsert(client: Humanloop, async_client: AsyncHumanloop) -> None:
4848
spec={
4949
"arguments_type": "target_required",
5050
"return_type": "number",
51-
"code": "def evaluate(answer, target):\\n return 0.5",
5251
"evaluator_type": "python",
52+
"code": "def evaluate(answer, target):\\n return 0.5",
5353
},
5454
commit_message="Initial commit",
5555
)
@@ -60,8 +60,8 @@ async def test_upsert(client: Humanloop, async_client: AsyncHumanloop) -> None:
6060
spec={
6161
"arguments_type": "target_required",
6262
"return_type": "number",
63-
"code": "def evaluate(answer, target):\\n return 0.5",
6463
"evaluator_type": "python",
64+
"code": "def evaluate(answer, target):\\n return 0.5",
6565
},
6666
commit_message="Initial commit",
6767
)

tests/utilities.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,9 @@ def validate_field(response: typing.Any, json_expectation: typing.Any, type_expe
7878

7979
# When dealing with containers of models, etc. we're validating them implicitly, so no need to check the resultant list
8080
if not is_container_of_complex_type:
81-
assert json_expectation == response, "Primitives found, expected: {0} (type: {1}), Actual: {2} (type: {3})".format(
81+
assert (
82+
json_expectation == response
83+
), "Primitives found, expected: {0} (type: {1}), Actual: {2} (type: {3})".format(
8284
json_expectation, type(json_expectation), response, type(response)
8385
)
8486

0 commit comments

Comments
 (0)