Explorar o código

fix: pass template as named argument (#233)

cachho %!s(int64=2) %!d(string=hai) anos
pai
achega
d0c42f5c2a
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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,