Skip to content

Async load prompt - #771

Closed
Ankur Goyal (ankrgyl) wants to merge 6 commits into
mainfrom
async-load-prompt
Closed

Async load prompt#771
Ankur Goyal (ankrgyl) wants to merge 6 commits into
mainfrom
async-load-prompt

Conversation

@ankrgyl

Copy link
Copy Markdown
Contributor

No description provided.

Comment thread py/src/braintrust/logger.py Outdated
:param api_key: The API key to use. If the parameter is not specified, will try to use the `BRAINTRUST_API_KEY` environment variable. If no API
key is specified, will prompt the user to login.
:param org_name: (Optional) The name of a specific organization to connect to. This is useful if you belong to multiple.
:param project_id: The id of the project to load the prompt from. This takes precedence over `project` if specified.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The project_id parameter documentation appears twice in this function - once at line 1498 and again here at line 1507. This duplicate documentation should be removed to maintain clarity in the API documentation.

Spotted by Diamond

Is this helpful? React 👍 or 👎 to let us know.

@manugoyal Manu Goyal (manugoyal) left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm. Matt Perpick (@clutchski) do you know if there's a reasonable way to test this in the SDK repo itself? Do we have a mock for the data plane API or something (or should we add one)?

Comment thread py/setup.py
long_description = f.read()

install_requires = [
"aiohttp",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this necessary if we're dynamic importing it?

@AbhiPrasad

Copy link
Copy Markdown
Member

Closing this as we've moved the python SDK code out of this repo, but we are tracking it with this GitHub issue: #771

@AbhiPrasad
Abhijeet Prasad (AbhiPrasad) deleted the async-load-prompt branch March 3, 2026 20:11
Mahhheshh (Mahhheshh) added a commit to Mahhheshh/braintrust-sdk-python that referenced this pull request Mar 15, 2026
ankur's work from braintrustdata/braintrust-sdk-javascript#771
Co-authored-by: Mahhheshh <100200105+Mahhheshh@users.noreply.github.com>
Mahhheshh (Mahhheshh) added a commit to Mahhheshh/braintrust-sdk-python that referenced this pull request Mar 15, 2026
ankur's work from braintrustdata/braintrust-sdk-javascript#771
Co-authored-by: Mahhheshh <100200105+Mahhheshh@users.noreply.github.com>
Mahhheshh (Mahhheshh) added a commit to Mahhheshh/braintrust-sdk-python that referenced this pull request Mar 25, 2026
ankur's work from braintrustdata/braintrust-sdk-javascript#771
Co-authored-by: Mahhheshh <100200105+Mahhheshh@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants