perf: markdown code css (#2187)

This commit is contained in:
Archer
2024-07-29 10:01:14 +08:00
committed by GitHub
parent 856d7ce48f
commit ba933c7450
3 changed files with 8 additions and 5 deletions

View File

@@ -31,6 +31,7 @@ const main = async (props: Props, retry = 3): Response => {
result: JSON.stringify(result)
};
} catch (error) {
console.log(error);
if (retry <= 0) {
addLog.warn('DuckDuckGo error', { error });
return {

View File

@@ -98,7 +98,7 @@ ${JSON.stringify(questionGuides)}`;
<AccordionPanel
py={0}
px={0}
mt={0}
mt={3}
borderRadius={'md'}
overflow={'hidden'}
maxH={'500px'}
@@ -111,10 +111,12 @@ ${toolParams}`}
/>
)}
{toolResponse && (
<Markdown
source={`~~~json#Response
<Box mt={3}>
<Markdown
source={`~~~json#Response
${toolResponse}`}
/>
/>
</Box>
)}
</AccordionPanel>
</AccordionItem>

View File

@@ -14,7 +14,7 @@ export default async function handler(req: NextApiRequest, res: NextApiResponse)
throw new Error('url is empty');
}
if (!FastGPTProUrl) {
throw new Error('未配置商业版链接');
throw new Error(`未配置商业版链接: ${path}`);
}
const parsedUrl = new URL(FastGPTProUrl);