mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-05-30 10:05:15 +08:00
fix: value.join is not a function in log list (#1332)
This commit is contained in:
parent
62bf7f0fc2
commit
e83e239faf
@ -181,14 +181,15 @@ function DetailPanel<T extends ChatConversationFullDetailResponse | CompletionCo
|
|||||||
const getParamValue = (param: string) => {
|
const getParamValue = (param: string) => {
|
||||||
const value = detail?.model_config.model?.completion_params?.[param] || '-'
|
const value = detail?.model_config.model?.completion_params?.[param] || '-'
|
||||||
if (param === 'stop') {
|
if (param === 'stop') {
|
||||||
if (!value || value.length === 0)
|
if (Array.isArray(value))
|
||||||
|
return value.join(',')
|
||||||
|
else
|
||||||
return '-'
|
return '-'
|
||||||
|
|
||||||
return value.join(',')
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return value
|
return value
|
||||||
}
|
}
|
||||||
|
|
||||||
return (<div className='rounded-xl border-[0.5px] border-gray-200 h-full flex flex-col overflow-auto'>
|
return (<div className='rounded-xl border-[0.5px] border-gray-200 h-full flex flex-col overflow-auto'>
|
||||||
{/* Panel Header */}
|
{/* Panel Header */}
|
||||||
<div className='border-b border-gray-100 py-4 px-6 flex items-center justify-between'>
|
<div className='border-b border-gray-100 py-4 px-6 flex items-center justify-between'>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user