mirror of
https://github.com/labring/FastGPT.git
synced 2025-10-19 10:07:24 +00:00
perf: markdown code css (#2187)
This commit is contained in:
@@ -31,6 +31,7 @@ const main = async (props: Props, retry = 3): Response => {
|
|||||||
result: JSON.stringify(result)
|
result: JSON.stringify(result)
|
||||||
};
|
};
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
console.log(error);
|
||||||
if (retry <= 0) {
|
if (retry <= 0) {
|
||||||
addLog.warn('DuckDuckGo error', { error });
|
addLog.warn('DuckDuckGo error', { error });
|
||||||
return {
|
return {
|
||||||
|
@@ -98,7 +98,7 @@ ${JSON.stringify(questionGuides)}`;
|
|||||||
<AccordionPanel
|
<AccordionPanel
|
||||||
py={0}
|
py={0}
|
||||||
px={0}
|
px={0}
|
||||||
mt={0}
|
mt={3}
|
||||||
borderRadius={'md'}
|
borderRadius={'md'}
|
||||||
overflow={'hidden'}
|
overflow={'hidden'}
|
||||||
maxH={'500px'}
|
maxH={'500px'}
|
||||||
@@ -111,10 +111,12 @@ ${toolParams}`}
|
|||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
{toolResponse && (
|
{toolResponse && (
|
||||||
<Markdown
|
<Box mt={3}>
|
||||||
source={`~~~json#Response
|
<Markdown
|
||||||
|
source={`~~~json#Response
|
||||||
${toolResponse}`}
|
${toolResponse}`}
|
||||||
/>
|
/>
|
||||||
|
</Box>
|
||||||
)}
|
)}
|
||||||
</AccordionPanel>
|
</AccordionPanel>
|
||||||
</AccordionItem>
|
</AccordionItem>
|
||||||
|
@@ -14,7 +14,7 @@ export default async function handler(req: NextApiRequest, res: NextApiResponse)
|
|||||||
throw new Error('url is empty');
|
throw new Error('url is empty');
|
||||||
}
|
}
|
||||||
if (!FastGPTProUrl) {
|
if (!FastGPTProUrl) {
|
||||||
throw new Error('未配置商业版链接');
|
throw new Error(`未配置商业版链接: ${path}`);
|
||||||
}
|
}
|
||||||
|
|
||||||
const parsedUrl = new URL(FastGPTProUrl);
|
const parsedUrl = new URL(FastGPTProUrl);
|
||||||
|
Reference in New Issue
Block a user