Skip to content

Update prompts to include branch methods#2583

Merged
penguine-ip merged 12 commits into
confident-ai:mainfrom
A-Vamshi:main
Mar 31, 2026
Merged

Update prompts to include branch methods#2583
penguine-ip merged 12 commits into
confident-ai:mainfrom
A-Vamshi:main

Conversation

@A-Vamshi

Copy link
Copy Markdown
Collaborator

No description provided.

@vercel

vercel Bot commented Mar 30, 2026

Copy link
Copy Markdown

@A-Vamshi is attempting to deploy a commit to the Confident AI Team on Vercel.

A member of the Team first needs to authorize it.

Comment thread deepeval/prompt/prompt.py Outdated

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.

Need to add branch to cache too

Comment thread deepeval/prompt/prompt.py Outdated
HINT_TEXT = f"version={version}"
else:
HINT_TEXT = f"hash={hash or 'latest'}"
HINT_TEXT = f"hash={hash or 'latest'}, branch={branch or self.branch}"

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.

branch={self.branch or 'main'}

Comment thread deepeval/confident/api.py Outdated
PROMPTS_COMMITS_ENDPOINT = "/v1/prompts/:alias/commits"
PROMPTS_COMMIT_HASH_ENDPOINT = "/v1/prompts/:alias/commits/:hash"
PROMPTS_BRANCHES_ENDPOINT = "/v1/prompts/:alias/branches"
PROMPTS_BRANCH_ENDPOINT = "/v1/prompts/:alias/branches/:branch"

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 :branch name or :branch id?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

This is the branch name so the :branch will be replaced by 'main' or any other name we might have

@penguine-ip penguine-ip merged commit 7505ed4 into confident-ai:main Mar 31, 2026
8 of 12 checks passed
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.

2 participants