Skip to content

Add .prompt_template() to all LLM-related components in sdialog #65

@sergioburdisso

Description

@sergioburdisso

The same as all LLM-based components have a .prompt() we should have .prompt_template() to get the prompt template too.

Idia: make this function as prompt_template(self, **kwargs) and if kwargs are given they're going to be used to render the template. Then we can use internally this function to render the templates and we kill two bird with one stone :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions