Skip to content

Commit

Permalink
Re-arrange the project_id field
Browse files Browse the repository at this point in the history
  • Loading branch information
ankrgyl committed Mar 31, 2024
1 parent 5c6fe9d commit 4ebf951
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion py/src/braintrust/logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -846,9 +846,9 @@ def compute_metadata():

def load_prompt(
project: Optional[str] = None,
project_id: Optional[str] = None,
slug: Optional[str] = None,
version: Optional[Union[str, int]] = None,
project_id: Optional[str] = None,
defaults: Optional[Dict[str, Any]] = None,
no_trace: bool = False,
app_url: Optional[str] = None,
Expand All @@ -861,6 +861,7 @@ def load_prompt(
:param project: The name of the project to load the prompt from. Must specify at least one of `project` or `project_id`.
:param slug: The slug of the prompt to load.
:param version: An optional version of the prompt (to read). If not specified, the latest version will be used.
:param project_id: The id of the project to load the prompt from. This takes precedence over `project` if specified.
:param defaults: (Optional) A dictionary of default values to use when rendering the prompt. Prompt values will override these defaults.
:param no_trace: If true, do not include logging metadata for this prompt when build() is called.
:param app_url: The URL of the Braintrust App. Defaults to https://www.braintrustdata.com.
Expand Down

0 comments on commit 4ebf951

Please sign in to comment.