mirror of
http://112.124.100.131/huang.ze/ebiz-dify-ai.git
synced 2025-12-10 11:26:52 +08:00
feat: multiple model configuration (#2196)
Co-authored-by: Joel <iamjoel007@gmail.com>
This commit is contained in:
@@ -45,15 +45,23 @@ export const sendCompletionMessage = async (appId: string, body: Record<string,
|
||||
}, { onData, onCompleted, onError, onMessageReplace })
|
||||
}
|
||||
|
||||
export const fetchSuggestedQuestions = (appId: string, messageId: string) => {
|
||||
return get(`apps/${appId}/chat-messages/${messageId}/suggested-questions`)
|
||||
export const fetchSuggestedQuestions = (appId: string, messageId: string, getAbortController?: any) => {
|
||||
return get(
|
||||
`apps/${appId}/chat-messages/${messageId}/suggested-questions`,
|
||||
{},
|
||||
{
|
||||
getAbortController,
|
||||
},
|
||||
)
|
||||
}
|
||||
|
||||
export const fetchConvesationMessages = (appId: string, conversation_id: string) => {
|
||||
export const fetchConvesationMessages = (appId: string, conversation_id: string, getAbortController?: any) => {
|
||||
return get(`apps/${appId}/chat-messages`, {
|
||||
params: {
|
||||
conversation_id,
|
||||
},
|
||||
}, {
|
||||
getAbortController,
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user