Skip to content

Commit

Permalink
perf: markdown code css (#2187)
Browse files Browse the repository at this point in the history
  • Loading branch information
c121914yu authored Jul 29, 2024
1 parent 856d7ce commit ba933c7
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
1 change: 1 addition & 0 deletions packages/plugins/src/duckduckgo/search/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ ${JSON.stringify(questionGuides)}`;
<AccordionPanel
py={0}
px={0}
mt={0}
mt={3}
borderRadius={'md'}
overflow={'hidden'}
maxH={'500px'}
Expand All @@ -111,10 +111,12 @@ ${toolParams}`}
/>
)}
{toolResponse && (
<Markdown
source={`~~~json#Response
<Box mt={3}>
<Markdown
source={`~~~json#Response
${toolResponse}`}
/>
/>
</Box>
)}
</AccordionPanel>
</AccordionItem>
Expand Down
2 changes: 1 addition & 1 deletion projects/app/src/pages/api/proApi/[...path].ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit ba933c7

Please sign in to comment.