(feature)(chat-sdk) add Few-shot examples (#599)

This commit is contained in:
williamhliu
2024-01-05 10:17:17 +08:00
committed by GitHub
parent 72bd79fe73
commit 062f7340e5
3 changed files with 91 additions and 2 deletions

View File

@@ -308,6 +308,8 @@ const ChatItem: React.FC<Props> = ({
[`${prefixCls}-content-mobile`]: isMobile,
});
const { llmReq, llmResp } = parseInfo?.properties?.CONTEXT || {};
return (
<div className={prefixCls}>
{!isMobile && integrateSystem !== 'wiki' && (
@@ -337,7 +339,8 @@ const ChatItem: React.FC<Props> = ({
<>
{!isMobile && parseInfo?.sqlInfo && isDeveloper && integrateSystem !== 'c2' && (
<SqlItem
llmReq={parseInfo?.properties?.CONTEXT?.llmReq}
llmReq={llmReq}
llmResp={llmResp}
integrateSystem={integrateSystem}
sqlInfo={parseInfo.sqlInfo}
sqlTimeCost={parseTimeCost?.sqlTime}