Skip to content

Commit daccb9f

Browse files
author
Andrei Bratu
committed
Remove local python utility
1 parent 17a4036 commit daccb9f

File tree

3 files changed

+4
-172
lines changed

3 files changed

+4
-172
lines changed

.fernignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
## Custom code
55

66
src/humanloop/evals
7-
src/humanloop/prompt_utils.py
87
src/humanloop/client.py
98
src/humanloop/overload.py
109
src/humanloop/context.py

src/humanloop/client.py

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,6 @@
2222
from humanloop.otel import instrument_provider
2323
from humanloop.otel.exporter import HumanloopSpanExporter
2424
from humanloop.otel.processor import HumanloopSpanProcessor
25-
from humanloop.prompt_utils import populate_template
26-
from humanloop.prompts.client import PromptsClient
2725

2826

2927
class ExtendedEvalsClient(EvaluationsClient):
@@ -70,14 +68,6 @@ def run(
7068
)
7169

7270

73-
class ExtendedPromptsClient(PromptsClient):
74-
"""
75-
Adds utility for populating Prompt template inputs.
76-
"""
77-
78-
populate_template = staticmethod(populate_template) # type: ignore [assignment]
79-
80-
8171
class Humanloop(BaseHumanloop):
8272
"""
8373
See docstring of :class:`BaseHumanloop`.
@@ -119,7 +109,6 @@ def __init__(
119109
eval_client = ExtendedEvalsClient(client_wrapper=self._client_wrapper)
120110
eval_client.client = self
121111
self.evaluations = eval_client
122-
self.prompts = ExtendedPromptsClient(client_wrapper=self._client_wrapper)
123112

124113
# Overload the .log method of the clients to be aware of Evaluation Context
125114
# and the @flow decorator providing the trace_id
@@ -144,7 +133,9 @@ def __init__(
144133
)
145134

146135
if opentelemetry_tracer is None:
147-
self._opentelemetry_tracer = self._tracer_provider.get_tracer("humanloop.sdk")
136+
self._opentelemetry_tracer = self._tracer_provider.get_tracer(
137+
"humanloop.sdk"
138+
)
148139
else:
149140
self._opentelemetry_tracer = opentelemetry_tracer
150141

@@ -153,7 +144,7 @@ def prompt(
153144
*,
154145
path: str,
155146
):
156-
"""Auto-instrument LLM provider and create [Prompt](https://humanloop.com/docs/explanation/prompts)
147+
"""Auto-instrument LLM providers and create [Prompt](https://humanloop.com/docs/explanation/prompts)
157148
Logs on Humanloop from them.
158149
159150
```python

src/humanloop/prompt_utils.py

Lines changed: 0 additions & 158 deletions
This file was deleted.

0 commit comments

Comments
 (0)