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:
Tasha Upchurch
2023-07-07 02:19:25 -04:00
parent e2615da287
commit b2ea3a6fa8
+2 -2
View File
@@ -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),)