mirror of
https://github.com/lobehub/lobehub.git
synced 2026-03-26 13:19:34 +07:00
chore: remove runtime config in agent builder and doc writer
This commit is contained in:
@@ -32,7 +32,7 @@ const AgentBuilderConversation = memo<AgentBuilderConversationProps>(({ agentId
|
||||
<Flexbox flex={1} style={{ overflow: 'hidden' }}>
|
||||
<ChatList welcome={<AgentBuilderWelcome />} />
|
||||
</Flexbox>
|
||||
<ChatInput leftActions={actions} />
|
||||
<ChatInput leftActions={actions} showRuntimeConfig={false} />
|
||||
</Flexbox>
|
||||
</DragUploadZone>
|
||||
);
|
||||
|
||||
@@ -70,6 +70,10 @@ export interface ChatInputProps {
|
||||
* Send menu configuration (for send options like Enter/Cmd+Enter, Add AI/User message)
|
||||
*/
|
||||
sendMenu?: MenuProps;
|
||||
/**
|
||||
* Whether to show the runtime config bar (Local/Cloud/Auto Approve)
|
||||
*/
|
||||
showRuntimeConfig?: boolean;
|
||||
/**
|
||||
* Remove a small margin when placed adjacent to the ChatList
|
||||
*/
|
||||
@@ -96,6 +100,7 @@ const ChatInput = memo<ChatInputProps>(
|
||||
sendAreaPrefix,
|
||||
sendButtonProps: customSendButtonProps,
|
||||
onEditorReady,
|
||||
showRuntimeConfig,
|
||||
skipScrollMarginWithList,
|
||||
}) => {
|
||||
const { t } = useTranslation('chat');
|
||||
@@ -189,6 +194,7 @@ const ChatInput = memo<ChatInputProps>(
|
||||
extraActionItems={extraActionItems}
|
||||
leftContent={leftContent}
|
||||
sendAreaPrefix={sendAreaPrefix}
|
||||
showRuntimeConfig={showRuntimeConfig}
|
||||
/>
|
||||
</WideScreenContainer>
|
||||
);
|
||||
|
||||
@@ -102,6 +102,7 @@ const Conversation = memo(() => {
|
||||
leftContent={leftContent}
|
||||
sendAreaPrefix={modelSelector}
|
||||
sendButtonProps={COMPACT_SEND_BUTTON_PROPS}
|
||||
showRuntimeConfig={false}
|
||||
/>
|
||||
</Flexbox>
|
||||
</DragUploadZone>
|
||||
|
||||
@@ -70,7 +70,7 @@ const FileCopilot = memo(() => {
|
||||
<Flexbox flex={1} style={{ overflow: 'hidden' }}>
|
||||
<ChatList />
|
||||
</Flexbox>
|
||||
<ChatInput leftActions={actions} />
|
||||
<ChatInput leftActions={actions} showRuntimeConfig={false} />
|
||||
</Flexbox>
|
||||
</DragUploadZone>
|
||||
</RightPanel>
|
||||
|
||||
@@ -23,7 +23,7 @@ const AgentBuilderConversation = memo<AgentBuilderConversationProps>(({ agentId
|
||||
<Flexbox flex={1} style={{ overflow: 'hidden' }}>
|
||||
<ChatList welcome={<AgentBuilderWelcome mode="group" />} />
|
||||
</Flexbox>
|
||||
<ChatInput leftActions={actions} />
|
||||
<ChatInput leftActions={actions} showRuntimeConfig={false} />
|
||||
</Flexbox>
|
||||
);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user