aider: Renamed class "PromptTemplate" to "PublicGitRepo" and updated method calls accordingly.
# Context: USER: Prompt template is a definition for a node that the server will use.. the server will supply information about the node to the front end. USER: the class should be renamed, "PublicGitRepo"
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
class PromptTemplate:
|
||||
class PublicGitRepo:
|
||||
"""replaces the text in the given text string with a given other text at some key positions"""
|
||||
|
||||
@classmethod
|
||||
@@ -18,7 +18,7 @@ class PromptTemplate:
|
||||
|
||||
def prompt_template_handler(self, text: str, replacement, key1, git_url):
|
||||
"""
|
||||
>>> PromptTemplate().prompt_template_handler("hello world", "universe", "world", "https://github.com/example/repo.git")
|
||||
>>> PublicGitRepo().prompt_template_handler("hello world", "universe", "world", "https://github.com/example/repo.git")
|
||||
'hello universe'
|
||||
"""
|
||||
return (text.replace(key1, replacement),)
|
||||
|
||||
Reference in New Issue
Block a user