Skip to content

Commit

Permalink
feat: show missing logic
Browse files Browse the repository at this point in the history
  • Loading branch information
iamjoel committed Oct 19, 2023
1 parent 07ca035 commit 20e776c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion web/app/components/app/configuration/config-prompt/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ const Prompt: FC<IPromptProps> = ({
currentAdvancedPrompt,
setCurrentAdvancedPrompt,
modelModeType,
dataSets,
hasSetBlockStatus,
} = useContext(ConfigContext)

const handleMessageTypeChange = (index: number, role: PromptRole) => {
Expand Down Expand Up @@ -84,7 +86,7 @@ const Prompt: FC<IPromptProps> = ({
setCurrentAdvancedPrompt(newPrompt)
}

const isContextMissing = true
const isContextMissing = dataSets.length > 0 && !hasSetBlockStatus.context
const [isHideContextMissTip, setIsHideContextMissTip] = React.useState(false)

if (!isAdvancedMode) {
Expand Down

0 comments on commit 20e776c

Please sign in to comment.