diff --git a/app/src/pages/playground/ModelConfigButton.tsx b/app/src/pages/playground/ModelConfigButton.tsx
index bb1c464cd2..34accc28c5 100644
--- a/app/src/pages/playground/ModelConfigButton.tsx
+++ b/app/src/pages/playground/ModelConfigButton.tsx
@@ -45,6 +45,12 @@ import {
} from "./playgroundUtils";
import { PlaygroundInstanceProps } from "./types";
+/**
+ * This is the maximum width of the model config button model name text.
+ * This is used to ensure that the model name text does not overflow the model config button.
+ */
+const MODEL_CONFIG_NAME_BUTTON_MAX_WIDTH = 150;
+
const modelConfigFormCSS = css`
display: flex;
flex-direction: column;
@@ -169,10 +175,22 @@ export function ModelConfigButton(props: ModelConfigButtonProps) {
setDialog();
});
}}
+ title={`${ModelProviders[instance.model.provider]} ${
+ instance.model.modelName || "--"
+ }`}
>
{ModelProviders[instance.model.provider]}
- {instance.model.modelName || "--"}
+
+ {instance.model.modelName || "--"}
+
state.instances);
+ const templateLanguage = usePlaygroundContext(
+ (state) => state.templateLanguage
+ );
const { datasetId } = useParams<{ datasetId: string }>();
const isDatasetMode = datasetId != null;
const numInstances = instances.length;
@@ -267,9 +277,13 @@ function PlaygroundContent() {
>
{/* No padding on the right of the accordion item, it is handled by the stable scrollbar gutter */}
-
+
{instances.map((instance) => (
-
+
-
-
-
-
-
+ {templateLanguage !== TemplateLanguages.NONE ? (
+
+
+
+
+
+ ) : null}
diff --git a/app/src/pages/playground/TemplateLanguageRadioGroup.tsx b/app/src/pages/playground/TemplateLanguageRadioGroup.tsx
index eb81932d3c..e101c4ff58 100644
--- a/app/src/pages/playground/TemplateLanguageRadioGroup.tsx
+++ b/app/src/pages/playground/TemplateLanguageRadioGroup.tsx
@@ -1,4 +1,5 @@
import React from "react";
+import { css } from "@emotion/react";
import { Radio, RadioGroup } from "@arizeai/components";
@@ -12,26 +13,34 @@ export function TemplateLanguageRadioGroup() {
(state) => state.setTemplateLanguage
);
return (
- {
- if (isTemplateLanguage(v)) {
- setLanguage(v);
+