feat: llm support struct output (#17994)
Co-authored-by: twwu <twwu@dify.ai> Co-authored-by: zxhlyh <jasonapring2015@outlook.com>
This commit is contained in:
parent
da9269ca97
commit
775dc47abe
82 changed files with 4190 additions and 276 deletions
|
|
@ -33,7 +33,7 @@ export const languages = data.languages
|
|||
export const LanguagesSupported = languages.filter(item => item.supported).map(item => item.value)
|
||||
|
||||
export const getLanguage = (locale: string) => {
|
||||
if (locale === 'zh-Hans')
|
||||
if (['zh-Hans', 'ja-JP'].includes(locale))
|
||||
return locale.replace('-', '_')
|
||||
|
||||
return LanguagesSupported[0].replace('-', '_')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue