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

Feat/prompt key required field #885

Merged
merged 20 commits into from
Dec 23, 2024
Merged
Changes from 1 commit
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
7b95550
added required field in prompt key
vishnuszipstack Dec 11, 2024
43dbed3
required fields constant and added required field in promptstudio helper
vishnuszipstack Dec 11, 2024
997d310
added frontend required field prompt key functionality
vishnuszipstack Dec 11, 2024
53fb466
added prompt service required key adding in metadata
vishnuszipstack Dec 11, 2024
0c97509
added required key in prompt studio registry and removed some unwante…
vishnuszipstack Dec 11, 2024
4781f5f
changed required field bool to option with any/all
vishnuszipstack Dec 12, 2024
fd29593
made changes in frontend to support option required
vishnuszipstack Dec 12, 2024
0dcf64a
prompt service changes to support required options field
vishnuszipstack Dec 12, 2024
d70c55d
required field based on enforce type
vishnuszipstack Dec 16, 2024
871c67d
changed required choices to class
vishnuszipstack Dec 17, 2024
91f8b6b
Merge branch 'main' into feat/prompt-key-required-field
vishnuszipstack Dec 17, 2024
7e7f666
frontend condition fail issue fix in highlight data
vishnuszipstack Dec 17, 2024
ebd1375
Merge branch 'main' into feat/prompt-key-required-field
vishnuszipstack Dec 17, 2024
cebcb11
required field text changes as per the feedback
vishnuszipstack Dec 17, 2024
b4a7746
Merge remote-tracking branch 'origin/feat/prompt-key-required-field' …
vishnuszipstack Dec 17, 2024
9000cd0
Merge branch 'main' into feat/prompt-key-required-field
vishnuszipstack Dec 20, 2024
4def998
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Dec 20, 2024
b589eee
addressed pr comments
vishnuszipstack Dec 20, 2024
f3b46f0
Merge remote-tracking branch 'origin/feat/prompt-key-required-field' …
vishnuszipstack Dec 20, 2024
e7e2237
added info for required fields
vishnuszipstack Dec 20, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
required fields constant and added required field in promptstudio helper
vishnuszipstack committed Dec 11, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
commit 43dbed339f25413eeef80fa5758ccde8d201d30d
1 change: 1 addition & 0 deletions backend/prompt_studio/prompt_studio_core_v2/constants.py
Original file line number Diff line number Diff line change
@@ -96,6 +96,7 @@ class ToolStudioPromptKeys:
RECORD = "record"
FILE_PATH = "file_path"
ENABLE_HIGHLIGHT = "enable_highlight"
REQUIRED = "required"


class FileViewTypes:
Original file line number Diff line number Diff line change
@@ -815,6 +815,7 @@ def _fetch_response(

output[TSPKeys.PROMPT] = prompt.prompt
output[TSPKeys.ACTIVE] = prompt.active
output[TSPKeys.REQUIRED] = prompt.required
output[TSPKeys.CHUNK_SIZE] = profile_manager.chunk_size
output[TSPKeys.VECTOR_DB] = vector_db
output[TSPKeys.EMBEDDING] = embedding_model