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

Minor fix for releasing new version #67

Merged
merged 9 commits into from
May 8, 2024
Merged

Minor fix for releasing new version #67

merged 9 commits into from
May 8, 2024

Conversation

vyokky
Copy link
Contributor

@vyokky vyokky commented May 6, 2024

  1. Update readme.md
  2. Merge visual and non-visual prompt into a single file
  3. Auto-registering new api/Command via api.yaml configuration.

@vyokky vyokky requested review from kangyu and rhmsd May 6, 2024 05:21
}

api_prompt = APIPromptLoader("").load_ui_api_prompt()
class_name_dict = self.filter_api_dict(api_prompt, "class_name")
Copy link
Collaborator

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"
Copy link
Collaborator

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.

@vyokky vyokky merged commit 1fad66b into pre-release May 8, 2024
1 check 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