🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.
TypeScript analyticsautogenevaluationlangchainlarge-language-modelsllama-indexllmllm-evaluationllm-observabilityllmopsmonitoringobservabilityopen-sourceopenaiplaygroundprompt-engineeringprompt-managementself-hostedycombinator
fix(prompt-experiments): do not restrict to evalModelsOnly in order to use anthropic, bedrock, vertex (#4872)
Marc Klingen5170718aad98
diff --git a/web/src/components/ModelParameters/index.tsx b/web/src/components/ModelParameters/index.tsxindex 44f7c98728..5e0e639baa 100644--- a/web/src/components/ModelParameters/index.tsx+++ b/web/src/components/ModelParameters/index.tsx@@ -34,15 +34,12 @@ export type ModelParamsContext = {modelParamsDescription?: string;};-export const ModelParameters: React.FC<- ModelParamsContext & { evalModelsOnly: boolean }-> = ({+export const ModelParameters: React.FC<ModelParamsContext> = ({modelParams,availableProviders,availableModels,updateModelParamValue,setModelParamEnabled,- evalModelsOnly,formDisabled = false,modelParamsDescription,}) => {@@ -55,11 +52,8 @@ export const ModelParameters: React.FC<<p className="font-semibold">Model</p>{availableProviders.length === 0 ? (<>- <p className="text-xs">- No LLM API key set in project.{" "}- {evalModelsOnly && "For evals, only OpenAI models are supported."}- </p>- <CreateLLMApiKeyDialog evalModelsOnly={evalModelsOnly} />+ <p className="text-xs">No LLM API key set in project. </p>+ <CreateLLMApiKeyDialog /></>) : (<div className="space-y-4">@@ -70,7 +64,6 @@ export const ModelParameters: React.FC<value={modelParams.provider.value}options={availableProviders}updateModelParam={updateModelParamValue}- evalModelsOnly={evalModelsOnly}/><ModelParamsSelecttitle="Model name"@@ -149,7 +142,6 @@ type ModelParamsSelectProps = {updateModelParam: ModelParamsContext["updateModelParamValue"];disabled?: boolean;modelParamsDescription?: string;- evalModelsOnly?: boolean;};const ModelParamsSelect = ({title,@@ -159,7 +151,6 @@ const ModelParamsSelect = ({updateModelParam,disabled,modelParamsDescription,- evalModelsOnly,}: ModelParamsSelectProps) => {return (<div className="space-y-2">@@ -191,7 +182,7 @@ const ModelParamsSelect = ({</SelectItem>))}<SelectSeparator />- <CreateLLMApiKeyDialog evalModelsOnly={evalModelsOnly} />+ <CreateLLMApiKeyDialog /></SelectContent></Select>{modelParamsDescription ? (diff --git a/web/src/ee/features/evals/components/template-form.tsx b/web/src/ee/features/evals/components/template-form.tsxindex 2b8168977d..66f611e482 100644--- a/web/src/ee/features/evals/components/template-form.tsx+++ b/web/src/ee/features/evals/components/template-form.tsx@@ -545,7 +545,6 @@ export const InnerEvalTemplateForm = (props: {modelParamsDescription:"Select a model which supports function calling.",}}- evalModelsOnlyformDisabled={!props.isEditing}/></div>diff --git a/web/src/ee/features/experiments/components/CreateExperimentsForm.tsx b/web/src/ee/features/experiments/components/CreateExperimentsForm.tsxindex b074894ee0..bbbca5b2c3 100644--- a/web/src/ee/features/experiments/components/CreateExperimentsForm.tsx+++ b/web/src/ee/features/experiments/components/CreateExperimentsForm.tsx@@ -683,10 +683,7 @@ export const CreateExperimentsForm = ({availableProviders,updateModelParamValue: updateModelParamValue,setModelParamEnabled,- modelParamsDescription:- "Select a model which supports function calling.",}}- evalModelsOnly/></Card>{form.formState.errors.modelConfig && (diff --git a/web/src/ee/features/playground/page/playground.tsx b/web/src/ee/features/playground/page/playground.tsxindex 4e779133ef..55177ad3cc 100644--- a/web/src/ee/features/playground/page/playground.tsx+++ b/web/src/ee/features/playground/page/playground.tsx@@ -14,7 +14,7 @@ export default function Playground() {<div className="max-h-full min-h-0 basis-1/4 pr-2"><div className="grid h-full grid-rows-[minmax(20dvh,max-content),minmax(20dvh,auto)] overflow-auto"><div className="mb-4 max-h-[80dvh] min-h-[20dvh] overflow-y-auto">- <ModelParameters {...playgroundContext} evalModelsOnly={false} />+ <ModelParameters {...playgroundContext} /></div><div className="min-h-[20dvh]"><Variables />diff --git a/web/src/features/public-api/components/CreateLLMApiKeyDialog.tsx b/web/src/features/public-api/components/CreateLLMApiKeyDialog.tsxindex 1c91972170..c35a6399c3 100644--- a/web/src/features/public-api/components/CreateLLMApiKeyDialog.tsx+++ b/web/src/features/public-api/components/CreateLLMApiKeyDialog.tsx@@ -14,11 +14,7 @@ import useProjectIdFromURL from "@/src/hooks/useProjectIdFromURL";import { useUiCustomization } from "@/src/ee/features/ui-customization/useUiCustomization";import { CreateLLMApiKeyForm } from "@/src/features/public-api/components/CreateLLMApiKeyForm";-export function CreateLLMApiKeyDialog({- evalModelsOnly,-}: {- evalModelsOnly?: boolean;-}) {+export function CreateLLMApiKeyDialog() {const projectId = useProjectIdFromURL();const [open, setOpen] = useState(false);const hasAccess = useHasProjectAccess({@@ -49,7 +45,6 @@ export function CreateLLMApiKeyDialog({{open && (<CreateLLMApiKeyFormprojectId={projectId}- evalModelsOnly={evalModelsOnly}onSuccess={() => setOpen(false)}customization={uiCustomization}/>diff --git a/web/src/features/public-api/components/CreateLLMApiKeyForm.tsx b/web/src/features/public-api/components/CreateLLMApiKeyForm.tsxindex 5a121301e7..8240031cfe 100644--- a/web/src/features/public-api/components/CreateLLMApiKeyForm.tsx+++ b/web/src/features/public-api/components/CreateLLMApiKeyForm.tsx@@ -66,12 +66,10 @@ const formSchema = zexport function CreateLLMApiKeyForm({projectId,- evalModelsOnly,onSuccess,customization,}: {projectId?: string;- evalModelsOnly?: boolean;onSuccess: () => void;customization: ReturnType<typeof useUiCustomization>;}) {@@ -248,18 +246,11 @@ export function CreateLLMApiKeyForm({</SelectTrigger></FormControl><SelectContent>- {Object.values(LLMAdapter)- .filter(- (provider) =>- !evalModelsOnly ||- provider === LLMAdapter.OpenAI ||- provider === LLMAdapter.Azure,- )- .map((provider) => (- <SelectItem value={provider} key={provider}>- {provider}- </SelectItem>- ))}+ {Object.values(LLMAdapter).map((provider) => (+ <SelectItem value={provider} key={provider}>+ {provider}+ </SelectItem>+ ))}</SelectContent></Select><FormMessage />