Skip to content

Commit 9274910

Browse files
author
Andrei Bratu
committed
removed redundant code
1 parent 86c20ba commit 9274910

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

src/humanloop/decorators/prompt.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -82,16 +82,10 @@ def wrapper(*args: Sequence[Any], **kwargs: Mapping[str, Any]) -> Any:
8282
# Return the output of the decorated function
8383
return output
8484

85-
prompt_kernel_file = {**prompt_kernel}
86-
if prompt_kernel_file.get("provider") is None:
87-
prompt_kernel_file["provider"] = "openai" # type: ignore
88-
if prompt_kernel_file.get("endpoint") is None:
89-
prompt_kernel_file["endpoint"] = "chat" # type: ignore
90-
9185
wrapper.file = File( # type: ignore
9286
path=path if path else func.__name__,
9387
type="prompt",
94-
version={**prompt_kernel_file}, # type: ignore
88+
version={**prompt_kernel}, # type: ignore
9589
callable=wrapper,
9690
)
9791

0 commit comments

Comments
 (0)