Skip to content

Commit

Permalink
fix: fix PersonOpenSourceApp query error (#353)
Browse files Browse the repository at this point in the history
  • Loading branch information
aaishikdutta authored Jul 21, 2023
1 parent bea4e9e commit c4797eb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions embedchain/apps/PersonApp.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,14 @@ class PersonOpenSourceApp(EmbedChainPersonApp, OpenSourceApp):
"""

def query(self, input_query, config: QueryConfig = None):
self.template = Template(self.person_prompt + " " + DEFAULT_PROMPT)
query_config = QueryConfig(
template=self.template,
)
return super().query(input_query, query_config)

def chat(self, input_query, config: ChatConfig = None):
self.template = Template(self.person_prompt + " " + DEFAULT_PROMPT_WITH_HISTORY)
chat_config = ChatConfig(
template=self.template,
)
Expand Down

0 comments on commit c4797eb

Please sign in to comment.