Skip to content

Commit 9e5cf9d

Browse files
Add score_name parameter to PromptLayer methods (#267)
1 parent 4506859 commit 9e5cf9d

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

promptlayer/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
from .promptlayer import AsyncPromptLayer, PromptLayer
22

3-
__version__ = "1.0.66"
3+
__version__ = "1.0.67"
44
__all__ = ["PromptLayer", "AsyncPromptLayer", "__version__"]

promptlayer/promptlayer.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -326,6 +326,7 @@ def log_request(
326326
function_name: str = "",
327327
score: int = 0,
328328
prompt_id: Union[int, None] = None,
329+
score_name: Union[str, None] = None,
329330
):
330331
return util_log_request(
331332
self.api_key,
@@ -347,6 +348,7 @@ def log_request(
347348
function_name=function_name,
348349
score=score,
349350
prompt_id=prompt_id,
351+
score_name=score_name,
350352
)
351353

352354

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 = "promptlayer"
3-
version = "1.0.66"
3+
version = "1.0.67"
44
description = "PromptLayer is a platform for prompt engineering and tracks your LLM requests."
55
authors = ["Magniv <hello@magniv.io>"]
66
license = "Apache-2.0"

0 commit comments

Comments
 (0)