fix: model parameter modal initial value (#1883)

This commit is contained in:
zxhlyh 2024-01-03 17:10:37 +08:00 committed by GitHub
parent 4d502ea44d
commit a8ff2e95da
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 1 additions and 4 deletions

View File

@ -287,7 +287,6 @@ const Metadata: FC<IMetadataProps> = ({ docDetail, loading, onUpdate }) => {
}
const onSave = async () => {
console.log('metadataParams:', metadataParams)
setSaveLoading(true)
const [e] = await asyncRunSafe<CommonResponse>(modifyDocMetadata({
datasetId,

View File

@ -30,7 +30,6 @@ const WorkplaceSelector = () => {
const currentWorkspace = workspaces.find(v => v.current)
const handleSwitchWorkspace = async (tenant_id: string) => {
console.log(tenant_id, currentWorkspace?.id)
try {
if (currentWorkspace?.id === tenant_id)
return

View File

@ -248,7 +248,7 @@ const ModelParameterModal: FC<ModelParameterModalProps> = ({
...(isAdvancedMode ? [stopParameerRule] : []),
].map(parameter => (
<ParameterItem
key={parameter.name}
key={`${modelId}-${parameter.name}`}
className='mb-4'
parameterRule={parameter}
value={completionParams[parameter.name]}

View File

@ -136,7 +136,6 @@ const handleStream = (response: Response, onData: IOnData, onCompleted?: IOnComp
onThought?.(bufferObj as ThoughtItem)
}
else if (bufferObj.event === 'message_end') {
console.log(bufferObj)
onMessageEnd?.(bufferObj as MessageEnd)
}
else if (bufferObj.event === 'message_replace') {