Skip to content

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
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.

3 participants