fix: show save api template button

This commit is contained in:
2023-12-26 17:36:49 +08:00
parent 54abddc517
commit 68a6ba40e5

View File

@@ -456,8 +456,20 @@ export default (props: {
readOnly={true} readOnly={true}
{...props} {...props}
/> />
<Slicer field="temperature" min={0} max={2} help="温度,数值越大模型生成文字的随机性越高。" {...props} /> <Slicer
<Slicer field="top_p" min={0} max={1} help="Top P 采样方法。建议与温度采样方法二选一,不要同时开启。" {...props} /> field="temperature"
min={0}
max={2}
help="温度,数值越大模型生成文字的随机性越高。"
{...props}
/>
<Slicer
field="top_p"
min={0}
max={1}
help="Top P 采样方法。建议与温度采样方法二选一,不要同时开启。"
{...props}
/>
<Number <Number
field="presence_penalty" field="presence_penalty"
help="存在惩罚度" help="存在惩罚度"
@@ -553,7 +565,7 @@ export default (props: {
</button> </button>
</div> </div>
<div className="flex justify-evenly flex-wrap"> <div className="flex justify-evenly flex-wrap">
{props.chatStore.apiEndpoint && props.chatStore.apiKey && ( {props.chatStore.apiEndpoint && (
<SetAPIsTemplate <SetAPIsTemplate
label="Chat API" label="Chat API"
endpoint={props.chatStore.apiEndpoint} endpoint={props.chatStore.apiEndpoint}