fix: Workflow debugging for authorized applications will result in an error message indicating unauthorized access to the model (#2819)

This commit is contained in:
shaohuzhang1 2025-04-08 10:51:35 +08:00 committed by GitHub
parent 7ca0a7bd02
commit 1a704f1c25
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 2 deletions

View File

@ -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]

View File

@ -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