瀏覽代碼

fix: pass template as named argument (#233)

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

+ 1 - 1
embedchain/config/ChatConfig.py

@@ -57,7 +57,7 @@ class ChatConfig(QueryConfig):
         # there don't have to be two templates. Having two templates would make it
         # complicated because the history is not user controlled.
         super().__init__(
-            template,
+            template=template,
             model=model,
             temperature=temperature,
             max_tokens=max_tokens,