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 75ca0cd commit 0ea1cb7Copy full SHA for 0ea1cb7
chart/web-app/app.py
@@ -27,6 +27,8 @@
27
# when contructing the `context` list in the `inference` function below.
28
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.")
32
33
llm = ChatOpenAI(
34
base_url=urljoin(backend_url, "v1"),
0 commit comments