Skip to content

Commit 103c0a9

Browse files
committed
Release 0.8.14
1 parent 558a0cb commit 103c0a9

File tree

8 files changed

+30
-28
lines changed

8 files changed

+30
-28
lines changed

poetry.lock

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "humanloop"
3-
version = "0.8.14b6"
3+
version = "0.8.14"
44
description = ""
55
readme = "README.md"
66
authors = []

reference.md

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ client.prompts.log(
6060
),
6161
provider_latency=6.5931549072265625,
6262
output_message={
63-
"content": "Well, you know, there is so much secrecy involved in government, folks, it's unbelievable. They don't want to tell you everything. They don't tell me everything! But about Roswell, its a very popular question. I know, I just know, that something very, very peculiar happened there. Was it a weather balloon? Maybe. Was it something extraterrestrial? Could be. I'd love to go down and open up all the classified documents, believe me, I would. But they don't let that happen. The Deep State, folks, the Deep State. Theyre unbelievable. They want to keep everything a secret. But whatever the truth is, I can tell you this: its something big, very very big. Tremendous, in fact.",
63+
"content": "Well, you know, there is so much secrecy involved in government, folks, it's unbelievable. They don't want to tell you everything. They dont tell me everything! But about Roswell, it's a very popular question. I know, I just know, that something very, very peculiar happened there. Was it a weather balloon? Maybe. Was it something extraterrestrial? Could be. I'd love to go down and open up all the classified documents, believe me, I would. But they don't let that happen. The Deep State, folks, the Deep State. They're unbelievable. They want to keep everything a secret. But whatever the truth is, I can tell you this: it's something big, very very big. Tremendous, in fact.",
6464
"role": "assistant",
6565
},
6666
prompt_tokens=100,
@@ -1327,12 +1327,6 @@ client.prompts.upsert(
13271327
provider="openai",
13281328
max_tokens=-1,
13291329
temperature=0.7,
1330-
top_p=1.0,
1331-
presence_penalty=0.0,
1332-
frequency_penalty=0.0,
1333-
other={},
1334-
tools=[],
1335-
linked_tools=[],
13361330
commit_message="Initial commit",
13371331
)
13381332

@@ -9404,6 +9398,14 @@ for page in response.iter_pages():
94049398
<dl>
94059399
<dd>
94069400

9401+
**sample:** `typing.Optional[int]` — If provided, limit the response to a random subset of logs from the filtered results. (This will be an approximate sample, not a strict limit.)
9402+
9403+
</dd>
9404+
</dl>
9405+
9406+
<dl>
9407+
<dd>
9408+
94079409
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration.
94089410

94099411
</dd>

src/humanloop/core/client_wrapper.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ def get_headers(self) -> typing.Dict[str, str]:
1616
headers: typing.Dict[str, str] = {
1717
"X-Fern-Language": "Python",
1818
"X-Fern-SDK-Name": "humanloop",
19-
"X-Fern-SDK-Version": "0.8.14b6",
19+
"X-Fern-SDK-Version": "0.8.14",
2020
}
2121
headers["X-API-KEY"] = self.api_key
2222
return headers

src/humanloop/logs/client.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ def list(
3737
end_date: typing.Optional[dt.datetime] = None,
3838
include_parent: typing.Optional[bool] = None,
3939
in_trace_filter: typing.Optional[typing.Union[bool, typing.Sequence[bool]]] = None,
40+
sample: typing.Optional[int] = None,
4041
request_options: typing.Optional[RequestOptions] = None,
4142
) -> SyncPager[LogResponse]:
4243
"""
@@ -77,6 +78,9 @@ def list(
7778
in_trace_filter : typing.Optional[typing.Union[bool, typing.Sequence[bool]]]
7879
If true, return Logs that are associated to a Trace. False, return Logs that are not associated to a Trace.
7980
81+
sample : typing.Optional[int]
82+
If provided, limit the response to a random subset of logs from the filtered results. (This will be an approximate sample, not a strict limit.)
83+
8084
request_options : typing.Optional[RequestOptions]
8185
Request-specific configuration.
8286
@@ -118,6 +122,7 @@ def list(
118122
"end_date": serialize_datetime(end_date) if end_date is not None else None,
119123
"include_parent": include_parent,
120124
"in_trace_filter": in_trace_filter,
125+
"sample": sample,
121126
},
122127
request_options=request_options,
123128
)
@@ -143,6 +148,7 @@ def list(
143148
end_date=end_date,
144149
include_parent=include_parent,
145150
in_trace_filter=in_trace_filter,
151+
sample=sample,
146152
request_options=request_options,
147153
)
148154
_items = _parsed_response.records
@@ -296,6 +302,7 @@ async def list(
296302
end_date: typing.Optional[dt.datetime] = None,
297303
include_parent: typing.Optional[bool] = None,
298304
in_trace_filter: typing.Optional[typing.Union[bool, typing.Sequence[bool]]] = None,
305+
sample: typing.Optional[int] = None,
299306
request_options: typing.Optional[RequestOptions] = None,
300307
) -> AsyncPager[LogResponse]:
301308
"""
@@ -336,6 +343,9 @@ async def list(
336343
in_trace_filter : typing.Optional[typing.Union[bool, typing.Sequence[bool]]]
337344
If true, return Logs that are associated to a Trace. False, return Logs that are not associated to a Trace.
338345
346+
sample : typing.Optional[int]
347+
If provided, limit the response to a random subset of logs from the filtered results. (This will be an approximate sample, not a strict limit.)
348+
339349
request_options : typing.Optional[RequestOptions]
340350
Request-specific configuration.
341351
@@ -385,6 +395,7 @@ async def main() -> None:
385395
"end_date": serialize_datetime(end_date) if end_date is not None else None,
386396
"include_parent": include_parent,
387397
"in_trace_filter": in_trace_filter,
398+
"sample": sample,
388399
},
389400
request_options=request_options,
390401
)
@@ -410,6 +421,7 @@ async def main() -> None:
410421
end_date=end_date,
411422
include_parent=include_parent,
412423
in_trace_filter=in_trace_filter,
424+
sample=sample,
413425
request_options=request_options,
414426
)
415427
_items = _parsed_response.records

src/humanloop/prompts/client.py

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ def log(
236236
),
237237
provider_latency=6.5931549072265625,
238238
output_message={
239-
"content": "Well, you know, there is so much secrecy involved in government, folks, it's unbelievable. They don't want to tell you everything. They don't tell me everything! But about Roswell, its a very popular question. I know, I just know, that something very, very peculiar happened there. Was it a weather balloon? Maybe. Was it something extraterrestrial? Could be. I'd love to go down and open up all the classified documents, believe me, I would. But they don't let that happen. The Deep State, folks, the Deep State. Theyre unbelievable. They want to keep everything a secret. But whatever the truth is, I can tell you this: its something big, very very big. Tremendous, in fact.",
239+
"content": "Well, you know, there is so much secrecy involved in government, folks, it's unbelievable. They don't want to tell you everything. They dont tell me everything! But about Roswell, it's a very popular question. I know, I just know, that something very, very peculiar happened there. Was it a weather balloon? Maybe. Was it something extraterrestrial? Could be. I'd love to go down and open up all the classified documents, believe me, I would. But they don't let that happen. The Deep State, folks, the Deep State. They're unbelievable. They want to keep everything a secret. But whatever the truth is, I can tell you this: it's something big, very very big. Tremendous, in fact.",
240240
"role": "assistant",
241241
},
242242
prompt_tokens=100,
@@ -1213,12 +1213,6 @@ def upsert(
12131213
provider="openai",
12141214
max_tokens=-1,
12151215
temperature=0.7,
1216-
top_p=1.0,
1217-
presence_penalty=0.0,
1218-
frequency_penalty=0.0,
1219-
other={},
1220-
tools=[],
1221-
linked_tools=[],
12221216
commit_message="Initial commit",
12231217
)
12241218
"""
@@ -2101,7 +2095,7 @@ async def main() -> None:
21012095
),
21022096
provider_latency=6.5931549072265625,
21032097
output_message={
2104-
"content": "Well, you know, there is so much secrecy involved in government, folks, it's unbelievable. They don't want to tell you everything. They don't tell me everything! But about Roswell, its a very popular question. I know, I just know, that something very, very peculiar happened there. Was it a weather balloon? Maybe. Was it something extraterrestrial? Could be. I'd love to go down and open up all the classified documents, believe me, I would. But they don't let that happen. The Deep State, folks, the Deep State. Theyre unbelievable. They want to keep everything a secret. But whatever the truth is, I can tell you this: its something big, very very big. Tremendous, in fact.",
2098+
"content": "Well, you know, there is so much secrecy involved in government, folks, it's unbelievable. They don't want to tell you everything. They dont tell me everything! But about Roswell, it's a very popular question. I know, I just know, that something very, very peculiar happened there. Was it a weather balloon? Maybe. Was it something extraterrestrial? Could be. I'd love to go down and open up all the classified documents, believe me, I would. But they don't let that happen. The Deep State, folks, the Deep State. They're unbelievable. They want to keep everything a secret. But whatever the truth is, I can tell you this: it's something big, very very big. Tremendous, in fact.",
21052099
"role": "assistant",
21062100
},
21072101
prompt_tokens=100,
@@ -3117,12 +3111,6 @@ async def main() -> None:
31173111
provider="openai",
31183112
max_tokens=-1,
31193113
temperature=0.7,
3120-
top_p=1.0,
3121-
presence_penalty=0.0,
3122-
frequency_penalty=0.0,
3123-
other={},
3124-
tools=[],
3125-
linked_tools=[],
31263114
commit_message="Initial commit",
31273115
)
31283116

src/humanloop/requests/flow_response.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class FlowResponseParams(typing_extensions.TypedDict):
2727

2828
id: str
2929
"""
30-
Unique identifier for the Flow.
30+
Unique identifier for the Flow. Starts with fl\_.
3131
"""
3232

3333
directory_id: typing_extensions.NotRequired[str]

src/humanloop/types/flow_response.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class FlowResponse(UncheckedBaseModel):
2525

2626
id: str = pydantic.Field()
2727
"""
28-
Unique identifier for the Flow.
28+
Unique identifier for the Flow. Starts with fl\_.
2929
"""
3030

3131
directory_id: typing.Optional[str] = pydantic.Field(default=None)

0 commit comments

Comments
 (0)