Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(prompts): unify template format and language #6403

Merged
merged 20 commits into from
Feb 16, 2025

Conversation

mikeldking
Copy link
Contributor

@mikeldking mikeldking commented Feb 15, 2025

resolves #6402

removes a couple hundred lines of un-necessary duplication

@dosubot dosubot bot added the size:XL This PR changes 500-999 lines, ignoring generated files. label Feb 15, 2025
Copy link

pkg-pr-new bot commented Feb 15, 2025

Open in Stackblitz

npm i https://pkg.pr.new/Arize-ai/phoenix/@arizeai/phoenix-client@6403

commit: 3f0120c

@@ -48,9 +48,9 @@ class PromptMessageRole(str, Enum):
TOOL = "TOOL"


class PromptTemplateFormat(str, Enum):
class TemplateFormat(str, Enum):
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe we can keep as PromptTemplateFormat for the sake of consistency with the other types in this file. Or remove the Prompt prefix from the other types.

@mikeldking mikeldking merged commit e028480 into prompts Feb 16, 2025
63 of 64 checks passed
@mikeldking mikeldking deleted the mikeldking/align-templating-language-names branch February 16, 2025 07:53
mikeldking added a commit that referenced this pull request Feb 19, 2025
* refactor(prompts): unify template format

* migrate the frontend

* build openapi

* refactor python client

* refactor JS

* fix db

* run ruff

* fix tests

* cleanup

* more cleanup

* run ci on prompts

* ruff again

* more fixes to python tests

* restore PromptTemplateFormat

* ruff

* build openapi

* build client

* cleanup

* fix tests

* cleanup
s-yeddula pushed a commit that referenced this pull request Mar 5, 2025
* refactor(prompts): unify template format

* migrate the frontend

* build openapi

* refactor python client

* refactor JS

* fix db

* run ruff

* fix tests

* cleanup

* more cleanup

* run ci on prompts

* ruff again

* more fixes to python tests

* restore PromptTemplateFormat

* ruff

* build openapi

* build client

* cleanup

* fix tests

* cleanup
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size:XL This PR changes 500-999 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants