We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a24e9ca commit 69c7917Copy full SHA for 69c7917
chart/web-app/app.py
@@ -25,7 +25,7 @@
25
# sure the web app works correctly with them. To do so, we detect when a
26
# mistral model is specified using this regex and then handle it explicitly
27
# when contructing the `context` list in the `inference` function below.
28
-MISTRAL_REGEX = re.compile(r"mi(s|x)tral", re.IGNORECASE)
+MISTRAL_REGEX = re.compile(r".*mi(s|x)tral.*", re.IGNORECASE)
29
IS_MISTRAL_MODEL = (MISTRAL_REGEX.match(settings.model_name) is not None)
30
if IS_MISTRAL_MODEL:
31
print("Detected Mistral model - will alter LangChain conversation format appropriately.")
0 commit comments