瀏覽代碼

fix: use custom prompt in dry run (#203)

cachho 2 年之前
父節點
當前提交
feda6b347a
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      embedchain/embedchain.py

+ 1 - 1
embedchain/embedchain.py

@@ -243,7 +243,7 @@ class EmbedChain:
         if config is None:
             config = QueryConfig()
         context = self.retrieve_from_database(input_query)
-        prompt = self.generate_prompt(input_query, context)
+        prompt = self.generate_prompt(input_query, context, config.template)
         return prompt
 
     def count(self):