-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Minor fix for releasing new version #67
Conversation
vyokky
commented
May 6, 2024
- Update readme.md
- Merge visual and non-visual prompt into a single file
- Auto-registering new api/Command via api.yaml configuration.
} | ||
|
||
api_prompt = APIPromptLoader("").load_ui_api_prompt() | ||
class_name_dict = self.filter_api_dict(api_prompt, "class_name") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This function involves a constant value "class_name" as parameter. The value is in the prompt file. If we modify the prompt file, it is easy to forget modifying many places that call this function. Better put this function and constant to APIPromptLoader class.
:return: The prompt template for UI APIs. | ||
""" | ||
|
||
config_key = "API_PROMPT" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we better put such config constant in configs class? Otherwise, may loss track if we change some key.