mirror of
https://github.com/labring/FastGPT.git
synced 2025-10-14 07:00:47 +00:00
perf: init shell (#5651)
* perf: init shell * fix: tool run select * border radius
This commit is contained in:
@@ -153,7 +153,10 @@ export const dispatchRunTool = async (props: RunToolProps): Promise<RunToolRespo
|
||||
}
|
||||
|
||||
const usagePoints = (() => {
|
||||
if (params.system_input_config?.type !== SystemToolInputTypeEnum.system) {
|
||||
if (
|
||||
params.system_input_config?.type === SystemToolInputTypeEnum.team ||
|
||||
params.system_input_config?.type === SystemToolInputTypeEnum.manual
|
||||
) {
|
||||
return 0;
|
||||
}
|
||||
return (tool.systemKeyCost ?? 0) + (tool.currentCost ?? 0);
|
||||
|
@@ -15,7 +15,7 @@ function UserBox({ sourceMember, avatarSize = '1.25rem', ...props }: UserBoxProp
|
||||
|
||||
return (
|
||||
<HStack space="1" {...props}>
|
||||
<Avatar src={sourceMember.avatar} w={avatarSize} />
|
||||
<Avatar src={sourceMember.avatar} w={avatarSize} borderRadius={'xs'} />
|
||||
<Box maxW={'150px'} whiteSpace={'nowrap'} overflow={'hidden'}>
|
||||
{sourceMember.name}
|
||||
</Box>
|
||||
|
Reference in New Issue
Block a user