mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-14 07:05:56 +08:00
fix: app config speech-to-text feature (#665)
This commit is contained in:
parent
6f17c9b2fe
commit
c5b68fb273
@ -23,7 +23,7 @@ export const ProviderContextProvider = ({
|
|||||||
children,
|
children,
|
||||||
}: ProviderContextProviderProps) => {
|
}: ProviderContextProviderProps) => {
|
||||||
const { data: userInfo } = useSWR({ url: '/info' }, fetchTenantInfo)
|
const { data: userInfo } = useSWR({ url: '/info' }, fetchTenantInfo)
|
||||||
const currentProvider = userInfo?.providers?.find(({ token_is_set, is_valid }) => token_is_set && is_valid)
|
const currentProvider = userInfo?.providers?.find(({ token_is_set, is_valid, provider_name }) => token_is_set && is_valid && (provider_name === 'openai' || provider_name === 'azure_openai'))
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<ProviderContext.Provider value={{ currentProvider }}>
|
<ProviderContext.Provider value={{ currentProvider }}>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user