You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -314,14 +280,6 @@ export function AssistantEditor({
314
280
}
315
281
)}
316
282
onSubmit={async(values,formikHelpers)=>{
317
-
if(finalPromptError){
318
-
setPopup({
319
-
type: "error",
320
-
message: "Cannot submit while there are errors in the form",
321
-
});
322
-
return;
323
-
}
324
-
325
283
if(
326
284
values.llm_model_provider_override&&
327
285
!values.llm_model_version_override
@@ -642,13 +600,7 @@ export function AssistantEditor({
642
600
placeholder="e.g. 'You are a professional email writing assistant that always uses a polite enthusiastic tone, emphasizes action items, and leaves blanks for the human to fill in when you have unknowns'"
643
601
onChange={(e)=>{
644
602
setFieldValue("system_prompt",e.target.value);
645
-
triggerFinalPromptUpdate(
646
-
e.target.value,
647
-
values.task_prompt,
648
-
searchToolEnabled()
649
-
);
650
603
}}
651
-
error={finalPromptError}
652
604
/>
653
605
654
606
<div>
@@ -775,7 +727,8 @@ export function AssistantEditor({
775
727
<TooltipTriggerasChild>
776
728
<div
777
729
className={`w-fit ${
778
-
!currentLLMSupportsImageOutput
730
+
!currentLLMSupportsImageOutput||
731
+
!isImageGenerationAvailable
779
732
? "opacity-70 cursor-not-allowed"
780
733
: ""
781
734
}`}
@@ -787,18 +740,30 @@ export function AssistantEditor({
@@ -1024,11 +989,6 @@ export function AssistantEditor({
1024
989
placeholder="e.g. 'Remember to reference all of the points mentioned in my message to you and focus on identifying action items that can move things forward'"
1025
990
onChange={(e)=>{
1026
991
setFieldValue("task_prompt",e.target.value);
1027
-
triggerFinalPromptUpdate(
1028
-
values.system_prompt,
1029
-
e.target.value,
1030
-
searchToolEnabled()
1031
-
);
1032
992
}}
1033
993
explanationText="Learn about prompting in our docs!"
0 commit comments