Skip to content

Commit

Permalink
renamed connection to config_name to avoid confusion
Browse files Browse the repository at this point in the history
  • Loading branch information
sethjuarez committed Aug 14, 2024
1 parent 21cbedd commit 583c89c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions runtime/prompty/prompty/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ def execute(
parameters: Dict[str, any] = {},
inputs: Dict[str, any] = {},
raw: bool = False,
connection: str = "default",
config_name: str = "default",
):
"""Execute a prompty.
Expand Down Expand Up @@ -380,7 +380,7 @@ def execute(
# get caller's path (take into account trace frame)
caller = Path(traceback.extract_stack()[-3].filename)
path = Path(caller.parent / path).resolve().absolute()
prompt = load(path, connection)
prompt = load(path, config_name)

# prepare content
content = prepare(prompt, inputs)
Expand Down

0 comments on commit 583c89c

Please sign in to comment.