mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-30 17:52:48 +00:00
fix: Workflow debugging for authorized applications will result in an error message indicating unauthorized access to the model (#2819)
This commit is contained in:
parent
7ca0a7bd02
commit
1a704f1c25
|
|
@ -97,7 +97,7 @@ class ChatView(APIView):
|
|||
tags=[_("Application/Chat")])
|
||||
def post(self, request: Request):
|
||||
return result.success(ChatSerializers.OpenWorkFlowChat(
|
||||
data={**request.data, 'user_id': request.user.id}).open())
|
||||
data={'user_id': request.user.id, **request.data}).open())
|
||||
|
||||
class OpenTemp(APIView):
|
||||
authentication_classes = [TokenAuth]
|
||||
|
|
|
|||
|
|
@ -268,8 +268,10 @@ const openChatId: () => Promise<string> = () => {
|
|||
})
|
||||
} else {
|
||||
if (isWorkFlow(obj.type)) {
|
||||
console.log(obj)
|
||||
const submitObj = {
|
||||
work_flow: obj.work_flow
|
||||
work_flow: obj.work_flow,
|
||||
user_id: obj.user
|
||||
}
|
||||
return applicationApi.postWorkflowChatOpen(submitObj).then((res) => {
|
||||
chartOpenId.value = res.data
|
||||
|
|
|
|||
Loading…
Reference in New Issue